Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335124 - Unable to regenerate editor with latest of XText 1.0.2
Summary: Unable to regenerate editor with latest of XText 1.0.2
Status: CLOSED WORKSFORME
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 12:44 EST by Samantha Chan CLA
Modified: 2011-01-24 17:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samantha Chan CLA 2011-01-23 12:44:39 EST
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
Comment 1 Sven Efftinge CLA 2011-01-24 03:03:35 EST
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.
Comment 2 Sven Efftinge CLA 2011-01-24 03:03:57 EST
please close this bug if this solved your issue.
Comment 3 Samantha Chan CLA 2011-01-24 11:21:54 EST
(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.
Comment 4 Samantha Chan CLA 2011-01-24 11:27:04 EST
(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.
Comment 5 Samantha Chan CLA 2011-01-24 11:46:58 EST
I tried a fresh install, but using an existing workspace.  I am still unable to regen with the same security error.
Comment 6 Sven Efftinge CLA 2011-01-24 16:44:47 EST
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.
Comment 7 Samantha Chan CLA 2011-01-24 17:58:38 EST
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.