Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error compiling DSL model with a released implementation
Error compiling DSL model with a released implementation [message #1770906] Fri, 18 August 2017 16:01 Go to next message
Oleg Cohen is currently offline Oleg CohenFriend
Messages: 22
Registered: August 2016
Junior Member
Greetings,

I have an XBase based DSL model. All works great when I launch a new Runtime instance of eclipse. When I package all my plugins (dsl, ui, ide) in a feature and then install on another eclipse, upon the project refresh the compilation fails.

Below is a stack trace.

I am using Eclipse Oxygen, Xtext version 2.12.0.

I would appreciate any info on how to get to the bottom of this and how to fix it!

Regards,
Oleg

29006 [Worker-35] ERROR org.eclipse.xtext.builder.clustering.ClusteringBuilderState - Error resolving cross references on resource 'platform:/resource/infocus.core.users/src/users-core.empower'
java.lang.NullPointerException
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.append(JvmDeclaredTypeSignatureHashProvider.java:107)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.appendSuperTypeSignatures(JvmDeclaredTypeSignatureHashProvider.java:168)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.appendSignature(JvmDeclaredTypeSignatureHashProvider.java:129)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$1.get(JvmDeclaredTypeSignatureHashProvider.java:72)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$1.get(JvmDeclaredTypeSignatureHashProvider.java:69)
at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider.getHash(JvmDeclaredTypeSignatureHashProvider.java:69)
at org.eclipse.xtext.common.types.descriptions.JvmTypesResourceDescriptionStrategy.createUserData(JvmTypesResourceDescriptionStrategy.java:78)
at org.eclipse.xtext.common.types.descriptions.JvmTypesResourceDescriptionStrategy$1.delegate(JvmTypesResourceDescriptionStrategy.java:68)
at com.google.common.collect.ForwardingMap.keySet(ForwardingMap.java:120)
at org.eclipse.xtext.resource.EObjectDescription.getUserDataKeys(EObjectDescription.java:99)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:93)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.copyExportedObject(BuilderStateUtil.java:73)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:33)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:232)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:116)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:287)
at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:319)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:155)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
29015 [Worker-35] ERROR org.eclipse.xtext.builder.clustering.ClusteringBuilderState - Error loading resource from: platform:/resource/infocus.core.users/src/users-core.empower
org.eclipse.xtext.builder.resourceloader.IResourceLoader$LoadOperationException: java.lang.NullPointerException
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:241)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:116)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:287)
at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:319)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:155)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.lang.NullPointerException
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.append(JvmDeclaredTypeSignatureHashProvider.java:107)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.appendSuperTypeSignatures(JvmDeclaredTypeSignatureHashProvider.java:168)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$SignatureHashBuilder.appendSignature(JvmDeclaredTypeSignatureHashProvider.java:129)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$1.get(JvmDeclaredTypeSignatureHashProvider.java:72)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider$1.get(JvmDeclaredTypeSignatureHashProvider.java:69)
at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
at org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider.getHash(JvmDeclaredTypeSignatureHashProvider.java:69)
at org.eclipse.xtext.common.types.descriptions.JvmTypesResourceDescriptionStrategy.createUserData(JvmTypesResourceDescriptionStrategy.java:78)
at org.eclipse.xtext.common.types.descriptions.JvmTypesResourceDescriptionStrategy$1.delegate(JvmTypesResourceDescriptionStrategy.java:68)
at com.google.common.collect.ForwardingMap.keySet(ForwardingMap.java:120)
at org.eclipse.xtext.resource.EObjectDescription.getUserDataKeys(EObjectDescription.java:99)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:93)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.copyExportedObject(BuilderStateUtil.java:73)
at org.eclipse.xtext.builder.builderState.BuilderStateUtil.create(BuilderStateUtil.java:33)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:232)
... 16 more
Re: Error compiling DSL model with a released implementation [message #1770910 is a reply to message #1770906] Fri, 18 August 2017 16:25 Go to previous messageGo to next message
Oleg Cohen is currently offline Oleg CohenFriend
Messages: 22
Registered: August 2016
Junior Member
Just want to add that my Java project in eclipse actually has an additional Library with a number of JARs. I just removed it and the generation worked.
Re: Error compiling DSL model with a released implementation [message #1770919 is a reply to message #1770910] Fri, 18 August 2017 18:28 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 11892
Registered: July 2009
Senior Member
i recommend you to (remote) debug into that eclipse and see whats the cause for the npe.
i assume

org.eclipse.xtext.common.types.descriptions.JvmDeclaredTypeSignatureHashProvider.SignatureHashBuilder.appendSuperTypeSignatures(JvmDeclaredType)

works on a supertype that is not on the classpath
which then will lead to the npe


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Previous Topic:Some proposals in content assisting are hidden
Next Topic:IDEA Plugin Error: ClasscastException
Goto Forum:
  


Current Time: Thu Apr 19 15:57:31 GMT 2018

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

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