cloudsmith/geppetto — Issue #232: NPE during build
Author: hlindberg
Created: 2011-11-15 11:27:20+00:00
State: open

As reported on the geppetto mailing list:

... I'm getting an XtextBuilder error, and the
"Building Puppet Projects" is taking forever. It hangs at a single
resource description.

I can see that when this happens it has always the same packfile from
the git import in use. Could the packfile be corrupted? How can I fix
this?

Error:
java.lang.NullPointerException
at
org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.getResourceDescriptions(ResourceDescriptionsProvider.java:
41)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPFinder.findExternal(PPFinder.java:
322)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPFinder.findHostClasses(PPFinder.java:
373)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPResourceLinker.checkCircularInheritence(PPResourceLinker.java:
546)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPResourceLinker._link(PPResourceLinker.java:
232)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPResourceLinker.link(PPResourceLinker.java:
1013)
at
org.cloudsmith.geppetto.pp.dsl.linking.PPLinker.afterModelLinked(PPLinker.java:
43)
at
org.eclipse.xtext.linking.impl.AbstractCleaningLinker.linkModel(AbstractCleaningLinker.java:
44)
at
org.eclipse.xtext.resource.XtextResource.doLinking(XtextResource.java:
249)
at
org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLinking(LazyLinkingResource.java:
77)
at
org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:
217)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:
152)
at
org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:
70)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:
1511)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:
1290)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:
255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:
270)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:
397)
at
org.eclipse.xtext.builder.clustering.ClusteringBuilderState.writeNewResourceDescriptions(ClusteringBuilderState.java:
235)
at
org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:
93)
at
org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:
107)
at
org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:
158)
at
org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:
182)
at
org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:
85)
at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
199)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
321)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
396)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:
618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
2344)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:
597)
at org.eclipse.core.internal.resources.Project.build(Project.java:
124)
at org.eclipse.xtext.builder.impl.BuildScheduler
$BuildJob.run(BuildScheduler.java:101)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

eclipse.buildId=R201110251649
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86