Thursday, July 29, 2010

OEPE, Eclipse helios & NoSuchMethodError at creating new WLS server

Here are some news from my friend:

Some theory first:
In order to have Oracle WebLogic Server 11gR1 PatchSet 2 (latest) runtime environment in Eclipse helios,
you need to have server adapter in your IDE for that.
We still think the best way to do this is through “Oracle Enterprise Pack for Eclipse” where this adapter is included.

From this pack you only need this software:
Oracle WebLogic Server Tools
Oracle Common Tools (dependency)

You can do that by adding another update URL in Eclipse:
“Oracle Enterprise Pack for Eclipse -”

Oracle web site ( )
contains this note:
“Note: Be aware that Eclipse 3.6 Helios is not final and this tech preview is based on the M6 milestone release of Eclipse 3.6.”

True. When you download latest eclipse it’s M7 milestone (from April 30, 2010).
Milestone M6 was API Freeze and latest M7 is Feature Freeze, Focus on Performance and Polish.

IMHO M7 is final 3.6 milestone.

Now to the point: when you try to add awesome WLS in latest Eclipse you will get nice server error

From Error log:

at org.eclipse.wst.server.ui.internal.wizard.TaskWizard.performFinish(
at org.eclipse.jface.wizard.WizardDialog.finishPressed(
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.jface.window.Window.runEventLoop(
at org.eclipse.jface.action.Action.runWithEvent(
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
at org.eclipse.jface.action.ActionContributionItem.access$2(
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: java.lang.NoSuchMethodError: org.eclipse.wst.server.core.internal.UpdateServerJob.<init>(Lorg/eclipse/wst/server/core/IServer;)V
at org.eclipse.wst.server.core.internal.ResourceManager.fireServerEvent(
at org.eclipse.wst.server.core.internal.ResourceManager.registerServer(
at org.eclipse.wst.server.core.internal.ResourceManager.addServer(
at org.eclipse.wst.server.core.internal.Server.saveToMetadata(
at org.eclipse.wst.server.core.internal.Base.doSave(
at org.eclipse.wst.server.core.internal.Server.doSave(
at org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil.tempSaveServer(
at org.eclipse.wst.server.ui.internal.wizard.WizardTaskUtil$4.performFinish(
at org.eclipse.wst.server.ui.internal.wizard.TaskWizard.executeTask(
at org.eclipse.wst.server.ui.internal.wizard.TaskWizard$
at org.eclipse.jface.operation.ModalContext$

That is because underlying eclipse implementation had changed.
You see that signature?

It’s initialize method from UpdateServerJob class that returns void and takes IServer as an argument.

When you decompile latest M7 UpdateServerJob.class there really is no such method. It has only constructor that takes IServer array!

public UpdateServerJob(IServer servers2[])
servers = servers2;

And WlsUiPlugin$1 calls it with

public void serverAdded(IServer server)
if(WebLogicServerUtil.isWebLogicServer(server) && server.getServerState() == 0)
UpdateServerJob job = new UpdateServerJob(server);

Unfortunately that works for M6 version only. At that time UpdateServerJob constructor looked like this:
public UpdateServerJob(IServer server)
super(NLS.bind(Messages.jobUpdateServer, server.getName()), server);

Oracle developers, I think it is really a time to update your OEPE plugin because M7 is out there for 3 months now.
You have to change all calls of that constructor:
UpdateServerJob job = new UpdateServerJob(server);
UpdateServerJob job = new UpdateServerJob(new IServer[]{server});

Simple like that

This construction needs to be changed also in these files: -> package -> -> package -> WlsUiPlugin$ -> package ->

Or you can give us OEPE plugin sources and we will change it ourselves 


Decompiler info:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page:
// Decompiler options: packimports(3)

Bundled M6 (oepe-helios-all-in-one) eclipse plugin jar: org.eclipse.wst.server.core_1.1.202.v20100315.jar
Latest M7 eclipse plugin jar: org.eclipse.wst.server.core_1.1.202.v20100518.jar


  1. And for developers, until Oracle patch their plugin you can stick to M6 Eclipse 3.6 version.
    Download it from