Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Guice Injection error( standalone setup throws injection failed for an RCP application)
Guice Injection error [message #1403395] Wed, 23 July 2014 08:19 Go to next message
Eclipse UserFriend
Hello Everyone,

I was trying to create an standalone setup for my RCP application.

When i try to createinjector for in my standalone setup.It gives the below exception.

Everything worked fine when the application was in eclipse indigo.When we ported the rcp to eclipse kepler the rcp application works fine,but there is this problem in running the standalone setup.

Below is the trace::

Exception in thread "main" com.google.inject.CreationException: Guice creation errors:

1) Error injecting constructor, java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/ui/MUIElement
at com.harman.sys.oscar.hmood.validation.HMoodJavaValidator.<init>(Unknown Source)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55)
while locating com.harman.sys.oscar.hmood.validation.HMoodJavaValidator

1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:183)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
at com.google.inject.Guice.createInjector(Guice.java:95)
at com.google.inject.Guice.createInjector(Guice.java:72)
at com.google.inject.Guice.createInjector(Guice.java:62)
at com.harman.sys.oscar.hmood.HMoodStandaloneSetupGenerated.createInjector(HMoodStandaloneSetupGenerated.java:28)
at com.harman.sys.oscar.hmood.HMoodStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(HMoodStandaloneSetupGenerated.java:22)
at com.harman.sys.oscar.hmood.HMoodStandaloneSetup.doSetup(HMoodStandaloneSetup.java:10)
at com.harman.sys.oscar.hmood.generator.Main.main(Main.java:116)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/e4/ui/model/application/ui/MUIElement
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:91)
at com.harman.sys.oscar.hmood.tools.ValidateHMood.initialize(ValidateHMood.java:29)
at com.harman.sys.oscar.hmood.tools.ValidateHMood.<init>(ValidateHMood.java:25)
at com.harman.sys.oscar.hmood.tools.ValidateHMood.getInstance(ValidateHMood.java:48)
at com.harman.sys.oscar.hmood.validation.HMoodJavaValidator.<init>(HMoodJavaValidator.java:133)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:85)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.Scopes$1$1.get(Scopes.java:65)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204)
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179)
... 8 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.e4.ui.model.application.ui.MUIElement
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 30 more

Can anyone please help me with the solution for this problem

Regards,
Anudeep.

[Updated on: Wed, 23 July 2014 08:20] by Moderator

Re: Guice Injection error [message #1403477 is a reply to message #1403395] Thu, 24 July 2014 00:58 Go to previous message
Eclipse UserFriend
Hi,

Does anyone one has answer to my question.i am still facing the same issue.Please reply asap:)

Regards,
Anudeep.
Previous Topic:ECP 1.3.x RAP target does not resolve
Next Topic:EMF Forms on Web
Goto Forum:
  


Current Time: Mon Jul 28 18:16:13 EDT 2025

Powered by FUDForum. Page generated in 0.23636 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top