Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318143

Summary: InjectionException when opening the WorkbenchModel Editor
Product: [Eclipse Project] e4 Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, tom.schindl
Version: unspecified   
Target Milestone: 1.0 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stephane Begaudeau CLA 2010-06-28 04:02:38 EDT
Build Identifier: I20100627-1555

I have switched to the last build of the e4 SDK (I20100627-1555) and I've created a new project with the "e4 Application Project" wizard. If I try to open the application.e4xmi with the WorkbenchModel Editor (or any application model or model fragment) I have an InjectionException. And because of that other bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=308659) I can't use the Visual Design editor either.

I am working on a standard version of Ubuntu 9.10


Stack Trace :

org.eclipse.e4.core.di.InjectionException: Could not find satisfiable constructor in org.eclipse.e4.tools.compat.internal.ReflectionContributionFactory
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:284)
	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.tools.compat.internal.ContextServiceFactory.create(ContextServiceFactory.java:69)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getService(WorkbenchServiceRegistry.java:104)
	at org.eclipse.ui.internal.services.ServiceLocator.getService(ServiceLocator.java:174)
	at org.eclipse.ui.internal.Workbench.getService(Workbench.java:3668)
	at org.eclipse.ui.internal.services.ServiceLocator$ParentLocator.getService(ServiceLocator.java:46)
	at org.eclipse.e4.tools.compat.internal.ContextServiceFactory.create(ContextServiceFactory.java:58)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getService(WorkbenchServiceRegistry.java:104)
	at org.eclipse.ui.internal.services.ServiceLocator.getService(ServiceLocator.java:174)
	at org.eclipse.ui.internal.WorkbenchWindow.getService(WorkbenchWindow.java:4090)
	at org.eclipse.ui.internal.services.ServiceLocator$ParentLocator.getService(ServiceLocator.java:46)
	at org.eclipse.e4.tools.compat.internal.ContextServiceFactory.create(ContextServiceFactory.java:58)
	at org.eclipse.ui.internal.services.WorkbenchServiceRegistry.getService(WorkbenchServiceRegistry.java:104)
	at org.eclipse.ui.internal.services.ServiceLocator.getService(ServiceLocator.java:174)
	at org.eclipse.ui.internal.PartSite.getService(PartSite.java:511)
	at org.eclipse.e4.tools.compat.internal.PartHelper.createPartContext(PartHelper.java:34)
	at org.eclipse.e4.tools.compat.parts.DIEditorPart.init(DIEditorPart.java:61)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:331)
	at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:179)
	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.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)


Reproducible: Always
Comment 1 Thomas Schindl CLA 2010-06-28 08:17:33 EDT
... looks like i forgot to add some service to the Compat-Layer (it should run in 4.0 SDK right?).

I'll try to take a look this evening when I'm back in my hotel
Comment 2 Thomas Schindl CLA 2010-06-28 12:05:42 EDT
fixed in HEAD