escay/Facttype — Issue #15: Nullpointer exception when saving an FTD
Author: KarlONeill
Created: 2011-11-15 09:46:58+00:00
State: open

When saving an FTD, the generated file isn't always created. See log below.

!SESSION 2011-11-15 10:01:04.006 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
Command-line arguments: -os win32 -ws win32 -arch x86 -data c:\projects\workspace-ftd -clean

!ENTRY org.apache.log4j 4 0 2011-11-15 10:01:50.926
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:38:45.212
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:39:48.228
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:39:57.681
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:40:05.759
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:41:09.963
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:42:30.745
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:43:00.823
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.apache.log4j 4 0 2011-11-15 10:43:07.027
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -

!STACK 0
java.lang.NullPointerException
at org.facttype.generator.DiagramGenerator.toHtmlCode(DiagramGenerator.java:786)
at org.facttype.generator.DiagramGenerator.getIcon(DiagramGenerator.java:127)
at org.facttype.generator.DiagramGenerator.doGenerate(DiagramGenerator.java:47)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.handleChangedContents(JavaProjectBasedBuilderParticipant.java:123)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:86)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
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:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)