Community
Participate
Working Groups
I have been running with my current workspace and *.mwe2 files for a while now. I have not had any trouble updating to latest version of XText 1.0.2 nightly builds until now. I installed this version of Xtext 1.0.2: 201101191309 When I tried to regenerate my editor, I got the following error. Please advise how I can get around this problem. Thanks... 460 ERROR Mwe2Launcher - Problems instantiating module spl.SPL: com.google.inject.CreationException: Guice creation errors: 1) Error in custom provider, java.lang.SecurityException: Signers of 'org.eclipse.xtext.util.XtextSwitch' do not match signers of other classes in package while locating org.eclipse.xtext.xtext.XtextValidator 1 error java.lang.RuntimeException: Problems instantiating module spl.SPL: com.google.inject.CreationException: Guice creation errors: 1) Error in custom provider, java.lang.SecurityException: Signers of 'org.eclipse.xtext.util.XtextSwitch' do not match signers of other classes in package while locating org.eclipse.xtext.xtext.XtextValidator 1 error at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73) at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52) at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74) at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35) Caused by: org.eclipse.emf.common.util.WrappedException: com.google.inject.CreationException: Guice creation errors: 1) Error in custom provider, java.lang.SecurityException: Signers of 'org.eclipse.xtext.util.XtextSwitch' do not match signers of other classes in package while locating org.eclipse.xtext.xtext.XtextValidator 1 error at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.create(Mwe2ExecutionEngine.java:141) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:92) 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.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:272) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:56) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalApplyAssignments(Mwe2ExecutionEngine.java:126) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:102) 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.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:272) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:56) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.inCase(Mwe2ExecutionEngine.java:69) 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.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:272) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.internalSwitch(Mwe2ExecutionEngine.java:56) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.create(Mwe2ExecutionEngine.java:52) at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:71) ... 3 more Caused by: com.google.inject.CreationException: Guice creation errors: 1) Error in custom provider, java.lang.SecurityException: Signers of 'org.eclipse.xtext.util.XtextSwitch' do not match signers of other classes in package while locating org.eclipse.xtext.xtext.XtextValidator 1 error at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354) at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:179) at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:113) at com.google.inject.Guice.createInjector(Guice.java:92) at com.google.inject.Guice.createInjector(Guice.java:69) at com.google.inject.Guice.createInjector(Guice.java:59) at org.eclipse.xtext.XtextStandaloneSetupGenerated.createInjector(XtextStandaloneSetupGenerated.java:26) at org.eclipse.xtext.XtextStandaloneSetupGenerated.createInjectorAndDoEMFRegistration(XtextStandaloneSetupGenerated.java:20) at org.eclipse.xtext.generator.Generator.<init>(Generator.java:74) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1328) at org.eclipse.emf.mwe2.language.factory.Mwe2ExecutionEngine.create(Mwe2ExecutionEngine.java:139) ... 27 more Caused by: java.lang.SecurityException: Signers of 'org.eclipse.xtext.util.XtextSwitch' do not match signers of other classes in package at java.lang.ClassLoader.checkPackageSigners(ClassLoader.java:322) at java.lang.ClassLoader.defineClass(ClassLoader.java:264) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69) at java.net.URLClassLoader.defineClass(URLClassLoader.java:529) at java.net.URLClassLoader.defineClass(URLClassLoader.java:440) at java.net.URLClassLoader.access$300(URLClassLoader.java:68) at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1023) at java.security.AccessController.doPrivileged(AccessController.java:284) at java.net.URLClassLoader.findClass(URLClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346) at java.lang.ClassLoader.loadClass(ClassLoader.java:619) at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at $org.eclipse.xtext.xtext.XtextValidator$$FastClassByGuice$$4d252eb0.newInstance(<generated>) at com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:65) at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111) at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45) at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811) at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42) at com.google.inject.Scopes$1$1.get(Scopes.java:54) at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48) at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:200) at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:194) at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804) at com.google.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194) at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176) ... 37 more
The jars in the release are signed, the nightly builds are not. It seems as if some of the jars are signed and some are not. Make sure you have replaced *all* old xtext jars with the new ones.
please close this bug if this solved your issue.
(In reply to comment #2) > please close this bug if this solved your issue. I uninstalled all XText features, and tried to re-install a new nightly build. I have been waiting for over 30 min now. It is stuck trying to get org.eclipse.xtext.logging.*.source.jar... I can't install the latest SDK with the nightly builds.
(In reply to comment #3) > (In reply to comment #2) > > please close this bug if this solved your issue. > > I uninstalled all XText features, and tried to re-install a new nightly build. > I have been waiting for over 30 min now. It is stuck trying to get > org.eclipse.xtext.logging.*.source.jar... > > I can't install the latest SDK with the nightly builds. I am going to install from scratch and see if things will get better.
I tried a fresh install, but using an existing workspace. I am still unable to regen with the same security error.
I installed a fresh Eclipse 3.6.1 with the latest nightly builds of Xtext 1.0.2 and found no such issues. I'm pretty sure there are split-package jars involved where one is signed and the other is not. Please double check your jars.
Thank you... I checked again and found that I had previously imported a plugin into my workspace and that was causing trouble. Sorry for the inconvenience.