Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369983 - ECP starting ends up in NoSuchMethodError (getMenuBar())
Summary: ECP starting ends up in NoSuchMethodError (getMenuBar())
Status: CLOSED WONTFIX
Alias: None
Product: ECP
Classification: Modeling
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8.9   Edit
Assignee: Max Hohenegger CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 13:01 EST by Julian Sommerfeldt CLA
Modified: 2012-03-09 12:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Sommerfeldt CLA 2012-01-27 13:01:16 EST
When i try to set up the ECP source for "getting involved" (following: http://eclipse.org/emfclient/gettinginvolved.php) and then try to start, i get the exception standing below. I tried it on a Win XP and Win 7, both 32 bit.

My guess is a wrong swt version in the target. After adding swt 3.7.1 to the target the exception did not occur anymore.


java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Display.getMenuBar()Lorg/eclipse/swt/widgets/Menu;
    at org.eclipse.ui.internal.Workbench.getAppMenu(Workbench.java:3923)
    at org.eclipse.ui.internal.Workbench.hasAppMenu(Workbench.java:3917)
    at org.eclipse.ui.internal.Workbench.createApplicationMenu(Workbench.java:3885)
    at org.eclipse.ui.internal.Workbench.access$20(Workbench.java:3883)
    at org.eclipse.ui.internal.Workbench$32.runWithException(Workbench.java:1579)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
    at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
    at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
    at org.eclipse.ui.internal.Workbench.init(Workbench.java:1575)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2623)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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(Main.java:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Jonas Helming CLA 2012-03-09 12:40:56 EST
cannot reproduce