Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318034 - [Compatibility] problem opening SSE editors
Summary: [Compatibility] problem opening SSE editors
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.3 RC2   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334303
  Show dependency tree
 
Reported: 2010-06-25 15:03 EDT by Paul Webster CLA
Modified: 2013-05-21 07:12 EDT (History)
9 users (show)

See Also:


Attachments
Eclipse-Details (703.31 KB, text/plain)
2013-03-28 10:23 EDT, Philip Wenig CLA
no flags Details
Log-After-Create-New-File (17.72 KB, text/plain)
2013-03-28 10:23 EDT, Philip Wenig CLA
no flags Details
Log-After-Closing-The-Editor-First-Tim (72.58 KB, text/plain)
2013-03-28 10:24 EDT, Philip Wenig CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2010-06-25 15:03:04 EDT
I tried to open one of my xmi files from Open Resource (by default in 4.0 SDK with XML editors and tools it defaults to the XML editor, an MPEP).  It opened a blank editor with no tab and no title.  I was able to close it eventually.  but it generated the following on my console:


ERROR: Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '201'
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalArgumentException: Group not found: matchingBegin
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:49)
        at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:749)
        at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:729)
        at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:89)
        at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:275)
        at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:203)
        at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:152)
        at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:172)
        at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:159)
        at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:50)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:560)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:390)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:454)
        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:578)
        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:621)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:1941)
        at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:1908)
        at org.eclipse.ui.internal.WorkbenchPage$6.run(WorkbenchPage.java:1890)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1886)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1870)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1861)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
        at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.execute(OpenResourceHandler.java:129)
        at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.run(OpenResourceHandler.java:181)
        at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:289)
        at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:56)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:42)
        at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:192)
        at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:169)
        at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:101)
        at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:135)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:266)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:465)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:515)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:348)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:294)
        at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:76)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1525)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1271)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2839)
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4794)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4372)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8163)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1239)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2224)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3169)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:662)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:581)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:102)
        at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:537)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:521)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        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:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: java.lang.IllegalArgumentException: Group not found: matchingBegin
        at org.eclipse.jface.action.ContributionManager.addToGroup(ContributionManager.java:131)
        at org.eclipse.jface.action.ContributionManager.appendToGroup(ContributionManager.java:145)
        at org.eclipse.jface.action.SubContributionManager.appendToGroup(SubContributionManager.java:82)
        at org.eclipse.jface.action.SubContributionManager.appendToGroup(SubContributionManager.java:73)
        at org.eclipse.wst.xml.ui.internal.actions.ActionContributorXML.contributeToMenu(ActionContributorXML.java:100)
        at org.eclipse.wst.xml.ui.internal.tabletree.SourcePageActionContributor.init(SourcePageActionContributor.java:49)
        at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)
        at org.eclipse.wst.sse.ui.internal.actions.ActionContributor.init(ActionContributor.java:310)
        at org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorActionBarContributor.initSourceViewerActionContributor(SourceEditorActionBarContributor.java:64)
        at org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorActionBarContributor.init(SourceEditorActionBarContributor.java:52)
        at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorActionBarContributor.init(XMLMultiPageEditorActionBarContributor.java:75)
        at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)
        at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:290)
        at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:252)
        at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:165)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:42)
        ... 80 more


2010-06-25 14:42:02.606 Log ErrorException while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/UIElement/widget/SET] to handler org.eclipse.e4.ui.services.internal.events.UIEventHandler@7fb67fb6
java.lang.NullPointerException
        at org.eclipse.ui.actions.RetargetAction.partClosed(RetargetAction.java:164)
        at org.eclipse.ui.internal.WorkbenchPage.firePartClosed(WorkbenchPage.java:2752)
        at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$2.handleEvent(CompatibilityPart.java:102)
        at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:41)
        at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:188)
        at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:198)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:139)
        at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
        at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
        at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:67)
        at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
        at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
        at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setWidget(PartImpl.java:489)
        at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.unbindWidget(SWTPartRenderer.java:108)
        at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.disposeWidget(SWTPartRenderer.java:127)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:494)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$1.handleEvent(PartRenderingEngine.java:126)
        at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:41)
        at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:188)
        at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:198)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
        at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:139)
        at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
        at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
        at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:67)
        at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
        at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:380)
        at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setToBeRendered(PartImpl.java:531)
        at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:631)
        at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$4.close(StackRenderer.java:442)
        at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1595)
        at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:261)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:662)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:581)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:102)
        at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:537)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:521)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        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:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:600)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Remy Suen CLA 2010-06-29 10:13:54 EDT
(In reply to comment #0)
> It opened
> a blank editor with no tab and no title.  I was able to close it eventually.

To be clear, the next request to open the file will work. Not entirely clear why this is the case though as you'd expect them to all fail the same way.
Comment 2 Remy Suen CLA 2010-08-12 13:08:49 EDT
Got the same thing with the HTML editor.

Caused by: java.lang.IllegalArgumentException: Group not found: matchingBegin
	at org.eclipse.jface.action.ContributionManager.addToGroup(ContributionManager.java:131)
	at org.eclipse.jface.action.ContributionManager.appendToGroup(ContributionManager.java:145)
	at org.eclipse.jface.action.SubContributionManager.appendToGroup(SubContributionManager.java:82)
	at org.eclipse.ui.internal.EditorMenuManager.appendToGroup(EditorMenuManager.java:304)
	at org.eclipse.jface.action.SubContributionManager.appendToGroup(SubContributionManager.java:73)
	at org.eclipse.wst.xml.ui.internal.actions.ActionContributorXML.contributeToMenu(ActionContributorXML.java:100)
	at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:167)
	at org.eclipse.ui.editors.text.TextEditorActionContributor.init(TextEditorActionContributor.java:159)
	at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:146)
	at org.eclipse.wst.sse.ui.internal.actions.ActionContributor.init(ActionContributor.java:310)
	at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:319)
	at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:272)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:47)
	... 85 more
Comment 3 Remy Suen CLA 2010-08-12 13:26:59 EDT
Bug 322563 explains why the second request completes successfully.
Comment 4 Remy Suen CLA 2010-08-12 14:10:00 EDT
Here's the 3.x trace of a GroupMarker being constructed with a name of 'matchingBegin'.

Thread [main] (Suspended (breakpoint at line 34 in GroupMarker))	
	GroupMarker.<init>(String) line: 34	
	MenuAdditionCacheEntry.createSeparatorAdditionContribution(IConfigurationElement) line: 261	
	MenuAdditionCacheEntry.createContributionItems(IServiceLocator, IContributionRoot) line: 173	
	WorkbenchMenuService$5.run() line: 584	
	SafeRunner.run(ISafeRunnable) line: 42	
	WorkbenchMenuService.processAdditions(IServiceLocator, Set, ContributionManager, AbstractContributionFactory, Set) line: 656	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 744	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 782	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 782	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	SlaveMenuService.populateContributionManager(ContributionManager, String) line: 76	
	WorkbenchWindow.fillActionBars(int) line: 3532	
	WorkbenchWindow.<init>(int) line: 414	
	Workbench3xImplementation.createWorkbenchWindow(int) line: 31	
	Workbench.newWorkbenchWindow() line: 1874	
	Workbench.access$14(Workbench) line: 1872	
	Workbench$63.runWithException() line: 3588	
	Workbench$63(StartupThreading$StartupRunnable).run() line: 31	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 134	
	Display.runAsyncMessages(boolean) line: 4041	
	Display.readAndDispatch() line: 3660	
	IDEWorkbenchAdvisor(WorkbenchAdvisor).openWindows() line: 803	
	Workbench$31.runWithException() line: 1566	
	Workbench$31(StartupThreading$StartupRunnable).run() line: 31	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 134	
	Display.runAsyncMessages(boolean) line: 4041	
	Display.readAndDispatch() line: 3660	
	Workbench.runUI() line: 2537	
	Workbench.access$4(Workbench) line: 2427	
	Workbench$7.run() line: 670	
	Realm.runWithDefault(Realm, Runnable) line: 332	
	Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 663	
	PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149	
	IDEApplication.start(IApplicationContext) line: 115

This GroupMarker is _not_ constructed by the SDK. It is a contribution from the org.eclipse.wst.sse.ui bundle.

<menuContribution locationURI="menu:goTo?after=additions">
  <separator name="matchingBegin" visible="false"></separator>
    <command commandId="org.eclipse.wst.sse.ui.goto.matching.bracket" id="org.eclipse.wst.sse.ui.goto.matching.bracket" label="%ActionDefinition.gotoMatchingBracket.name" style="push">
      <visibleWhen checkEnabled="false">
        <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
      </visibleWhen>
    </command>
  <separator name="matchingEnd" visible="false"></separator>
</menuContribution>
Comment 5 Paul Webster CLA 2010-08-12 14:50:21 EDT
We fill the menu bar MenuManager once to scrap it and create our model menu bar.  We then apply menuContributions from MMenuContributions on SWT.Show for each cascading menu item.

We didn't give EditorActionBars a full makeover yet, so the problem could be that EABCs are applied to the skeletal menu bar MenuManager, which now longer gets menuContributions applied to it.

PW
Comment 6 Remy Suen CLA 2010-08-12 15:03:04 EDT
Here's the 3.x trace of the marker being added to the 'goTo' menu manager.

Thread [main] (Suspended (breakpoint at line 405 in ContributionManager))	
	MenuManager(ContributionManager).itemAdded(IContributionItem) line: 405	
	MenuManager(ContributionManager).insert(int, IContributionItem) line: 317	
	WorkbenchMenuService$5.run() line: 646	
	SafeRunner.run(ISafeRunnable) line: 42	
	WorkbenchMenuService.processAdditions(IServiceLocator, Set, ContributionManager, AbstractContributionFactory, Set) line: 656	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 744	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 782	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	WorkbenchMenuService.addContributionsToManager(IServiceLocator, Set, ContributionManager, String, boolean, List) line: 782	
	WorkbenchMenuService.populateContributionManager(IServiceLocator, Set, ContributionManager, String, boolean) line: 730	
	SlaveMenuService.populateContributionManager(ContributionManager, String) line: 76	
	WorkbenchWindow.fillActionBars(int) line: 3532	
	WorkbenchWindow.<init>(int) line: 414	
	Workbench3xImplementation.createWorkbenchWindow(int) line: 31	
	Workbench.newWorkbenchWindow() line: 1874	
	Workbench.access$14(Workbench) line: 1872	
	Workbench$63.runWithException() line: 3588	
	Workbench$63(StartupThreading$StartupRunnable).run() line: 31	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 134	
	Display.runAsyncMessages(boolean) line: 4041	
	Display.readAndDispatch() line: 3660	
	IDEWorkbenchAdvisor(WorkbenchAdvisor).openWindows() line: 803	
	Workbench$31.runWithException() line: 1566	
	Workbench$31(StartupThreading$StartupRunnable).run() line: 31	
	RunnableLock.run() line: 35	
	UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 134	
	Display.runAsyncMessages(boolean) line: 4041	
	Display.readAndDispatch() line: 3660	
	Workbench.runUI() line: 2537	
	Workbench.access$4(Workbench) line: 2427	
	Workbench$7.run() line: 670	
	Realm.runWithDefault(Realm, Runnable) line: 332	
	Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 663	
	PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149	
	IDEApplication.start(IApplicationContext) line: 115
Comment 7 Remy Suen CLA 2010-08-16 10:20:42 EDT
Changed the code to log the exception for the time being.
Comment 8 Paul Webster CLA 2011-04-12 10:53:54 EDT
Is this still a problem with our linking of MenuManager to model?

PW
Comment 9 Remy Suen CLA 2011-04-13 10:28:57 EDT
(In reply to comment #8)
> Is this still a problem with our linking of MenuManager to model?

The code [to log] is still there but I don't see any logged warnings anymore (I think we've revamped the EMM completely since) on I20110407-2200.

The 'Go To' submenu under the 'Navigate' menu also appears to be popuplated properly.
Comment 10 Philip Wenig CLA 2013-03-28 10:22:41 EDT
Hi folks,

the error seems to persist. I'm using the latest Eclipse Milestone on a Ubuntu Linux:

Eclipse 4.3M6
Ubuntu 12.04 x86_64

see: Eclipse-Details.txt

After creating a new file in the "Project Navigator", an editor will be opened, but only the (x) to close the editor will be shown.

see: Log-After-Create-New-File.txt

After closing the editor, the following errors are thrown:

see: Log-After-Closing-The-Editor-First-Time.txt

A new try to re-open the file works fine and the editor will be displayed correctly. Any thoughts?
Comment 11 Philip Wenig CLA 2013-03-28 10:23:26 EDT
Created attachment 229154 [details]
Eclipse-Details
Comment 12 Philip Wenig CLA 2013-03-28 10:23:58 EDT
Created attachment 229155 [details]
Log-After-Create-New-File
Comment 13 Philip Wenig CLA 2013-03-28 10:24:15 EDT
Created attachment 229156 [details]
Log-After-Closing-The-Editor-First-Tim
Comment 14 Paul Webster CLA 2013-03-28 10:46:10 EDT
I wonder if it's creating the part before it has fully filled out the menu structure the first time (and then you get the error)

PW
Comment 15 Lars Vogel CLA 2013-05-15 09:05:11 EDT
Looks like this problem is solved by using the ApplicationActionBarAdvisor.java with the following code:

protected void fillMenuBar(IMenuManager menuBar) {
    MenuManager editMenu = new MenuManager("&Edit", IWorkbenchActionConstants.M_EDIT);
    editMenu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
}

See: http://openchrom.wordpress.com/2013/05/14/cant-find-idfind-ext-exception/

@Paul, is this setting required by users of the compatibility layer? It feels to me that the platform should handle that.
Comment 16 Paul Webster CLA 2013-05-15 10:38:37 EDT
(In reply to comment #15)
> See:
> http://openchrom.wordpress.com/2013/05/14/cant-find-idfind-ext-exception/
> 
> @Paul, is this setting required by users of the compatibility layer? It
> feels to me that the platform should handle that.

It is handled by the compat layer and ide.  It's not handled if you create your own RCP app and don't use the IDE and WorkbenchActionBuilder.

If this is happening in Kepler or when installed into the IDE, please re-open this bug.

If this is happening in an RCP app and didn't happen in the same app in Indigo/3.8 please open a new bug.

PW
Comment 17 Dani Megert CLA 2013-05-21 07:12:13 EDT
.