java.lang.NoSuchMethodError: org.eclipse.e4.ui.workbench.swt.modeling.MenuService.registerMenu(Lorg/eclipse/swt/widgets/Control;Lorg/eclipse/e4/ui/model/application/ui/menu/MPopupMenu;Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;)Lorg/eclipse/swt/widgets/Menu;

Eclipse Bugzilla | robert.munteanu | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Bug 398925 – After prolonged usage Eclipse becomes unusable : java.lang.Object cannot be cast to org.eclipse.e4.core.commands.EHandlerService

    eclipse.org | 8 months ago
    java.lang.NoSuchMethodError: org.eclipse.e4.ui.workbench.swt.modeling.MenuService.registerMenu(Lorg/eclipse/swt/widgets/Control;Lorg/eclipse/e4/ui/model/application/ui/menu/MPopupMenu;Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;)Lorg/eclipse/swt/widgets/Menu;
  2. 0

    After prolonged usage Eclipse becomes unusable : java.lang.Object cannot be cast to org.eclipse.e4.core.commands.EHandlerService

    Eclipse Bugzilla | 4 years ago | robert.munteanu
    java.lang.NoSuchMethodError: org.eclipse.e4.ui.workbench.swt.modeling.MenuService.registerMenu(Lorg/eclipse/swt/widgets/Control;Lorg/eclipse/e4/ui/model/application/ui/menu/MPopupMenu;Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;)Lorg/eclipse/swt/widgets/Menu;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.eclipse.e4.ui.workbench.swt.modeling.MenuService.registerMenu(Lorg/eclipse/swt/widgets/Control;Lorg/eclipse/e4/ui/model/application/ui/menu/MPopupMenu;Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;)Lorg/eclipse/swt/widgets/Menu;

      at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendererFilter.safeHandleEvent()
    2. org.eclipse.e4
      MenuManagerRendererFilter$SafeWrapper.run
      1. org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendererFilter.safeHandleEvent(MenuManagerRendererFilter.java:176)
      2. org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendererFilter.access$1(MenuManagerRendererFilter.java:143)
      3. org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendererFilter$SafeWrapper.run(MenuManagerRendererFilter.java:130)
      3 frames
    3. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    4. org.eclipse.e4
      MenuManagerRendererFilter.handleEvent
      1. org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRendererFilter.handleEvent(MenuManagerRendererFilter.java:140)
      1 frame
    5. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
      6. org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4881)
      7. org.eclipse.swt.widgets.Control.windowProc(Control.java:4557)
      8. org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
      9. org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
      10. org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
      11. org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
      11 frames
    6. org.eclipse.swt
      OS.TrackPopupMenu
      1. org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
      1 frame
    7. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Menu._setVisible(Menu.java:257)
      2. org.eclipse.swt.widgets.Display.runPopups(Display.java:4210)
      3. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
      3 frames
    8. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      2. org.eclipse.jface.window.Window.open(Window.java:801)
      2 frames
    9. org.eclipse.ui
      LogView$15.doubleClick
      1. org.eclipse.ui.internal.views.log.EventDetailsDialog.open(EventDetailsDialog.java:180)
      2. org.eclipse.ui.internal.views.log.EventDetailsDialogAction.run(EventDetailsDialogAction.java:98)
      3. org.eclipse.ui.internal.views.log.LogView$15.doubleClick(LogView.java:535)
      3 frames
    10. JFace
      StructuredViewer$1.run
      1. org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
      1 frame
    11. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    12. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      1 frame
    13. JFace
      OpenStrategy$1.handleEvent
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      2. org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)
      3. org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1477)
      4. org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
      5. org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
      6. org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
      7. org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
      7 frames
    14. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
      4 frames
    15. Eclipse Workbench SWT
      PartRenderingEngine$9.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
      1 frame
    16. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    17. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
      1 frame
    18. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      1 frame
    19. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      1 frame
    20. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    21. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      1 frame
    22. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    23. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      1 frame
    24. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    25. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      4 frames
    26. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    27. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      3 frames