Build fails with NPE
Sometimes a non-clean build of a language fails with a NPE. After cleaning the project the build succeeds.
Console output:
09:48 | INFO | o.m.c.build.Builder - Building eclipse:///grace 09:48 | INFO | o.m.c.build.Builder - Building 1 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.template:2.1.0-SNAPSHOT 09:48 | INFO | o.m.c.build.Builder - Building 1 sources, 2 includes of language impl. org.metaborg:org.metaborg.meta.lang.esv:2.1.0-SNAPSHOT 09:49 | INFO | s.e.m.b.GenerateSourcesBuilder - Generating sources for language project eclipse:///grace 09:49 | INFO | o.m.c.build.Builder - Building eclipse:///grace 09:49 | INFO | o.m.c.build.Builder - Building 1 sources, 0 includes of language impl. org.metaborg:org.metaborg.meta.lang.esv:2.1.0-SNAPSHOT 09:49 | INFO | o.m.s.e.m.b.CompileBuilder - Building language project eclipse:///grace 09:49 | INFO | Build log - > Generate sources 09:49 | INFO | Build log - > Pack SDF modules 09:49 | INFO | Build log - Execute pack-sdf -i /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen/syntax/grace.sdf -o /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen/syntax/grace.def -I /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/syntax -I /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen -I /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace -I /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen/syntax 09:49 | INFO | Build log - > Make grammar permissive for error-recovery parsing. 09:49 | INFO | Build log - Execute make-permissive -i /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen/syntax/grace.def -o /Users/vladvergu/tud/slde/software/languages/nonmeta/metaborg-grace/grace/src-gen/syntax/grace-permissive.def --optimize on --semantic-completions off --syntactic-completions off 09:49 | INFO | Build log - > Compile grammar to parse table 09:49 | ERROR | Build log - Builder failed unexpectedly java.lang.NullPointerException: null at org.metaborg.spoofax.meta.core.pluto.build.Sdf2Table.build(Sdf2Table.java:79) ~[org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at org.metaborg.spoofax.meta.core.pluto.build.Sdf2Table.build(Sdf2Table.java:1) ~[org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at build.pluto.builder.Builder.triggerBuild(Builder.java:134) [pluto-1.10.0.jar:na] at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:98) [pluto-1.10.0.jar:na] at build.pluto.builder.BuildManager.require(BuildManager.java:348) [pluto-1.10.0.jar:na] at build.pluto.builder.Builder.requireBuild(Builder.java:214) [pluto-1.10.0.jar:na] at build.pluto.builder.Builder.requireBuild(Builder.java:233) [pluto-1.10.0.jar:na] at org.metaborg.spoofax.meta.core.pluto.build.main.GenerateSourcesBuilder.build(GenerateSourcesBuilder.java:260) [org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at org.metaborg.spoofax.meta.core.pluto.build.main.GenerateSourcesBuilder.build(GenerateSourcesBuilder.java:1) [org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at build.pluto.builder.Builder.triggerBuild(Builder.java:134) [pluto-1.10.0.jar:na] at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:98) [pluto-1.10.0.jar:na] at build.pluto.builder.BuildManager.require(BuildManager.java:335) [pluto-1.10.0.jar:na] at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:262) [pluto-1.10.0.jar:na] at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:304) [org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.compile(LanguageSpecBuilder.java:136) [org.metaborg.spoofax.meta.core_2.1.0.qualifier.jar:na] at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder$1.run(CompileBuilder.java:49) [org.metaborg.spoofax.eclipse.meta_2.1.0.20161128-122117-master.jar:na] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder.build(CompileBuilder.java:69) [org.metaborg.spoofax.eclipse.meta_2.1.0.20161128-122117-master.jar:na] at org.metaborg.spoofax.eclipse.meta.build.Builder.build(Builder.java:53) [org.metaborg.spoofax.eclipse.meta_2.1.0.20161128-122117-master.jar:na] at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.8.0.v20160509-1230.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [org.eclipse.equinox.common_3.8.0.v20160509-1230.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:406) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:285) [org.eclipse.ui.ide_3.12.0.v20160601-1609.jar:na] at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) [org.eclipse.core.resources_3.11.0.v20160503-1608.jar:na] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) [org.eclipse.core.jobs_3.8.0.v20160509-0411.jar:na] 09:49 | INFO | o.m.s.e.m.b.PackageBuilder - Packaging language project eclipse:///grace 09:49 | INFO | Build log - > Package language implementation 09:49 | ERROR | Build log - Required builder failed. Error occurred in build step "Generate sources": no rebuild of failing builder
Exception 1 in Log View:
java.lang.NullPointerException at org.metaborg.spoofax.meta.core.pluto.SpoofaxReporting.canceledBuilderRequiredBuilderFailed(SpoofaxReporting.java:68) at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:111) at build.pluto.builder.BuildManager.require(BuildManager.java:335) at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:262) at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:304) at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.compile(LanguageSpecBuilder.java:136) at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder$1.run(CompileBuilder.java:49) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.metaborg.spoofax.eclipse.meta.build.CompileBuilder.build(CompileBuilder.java:69) at org.metaborg.spoofax.eclipse.meta.build.Builder.build(Builder.java:53) 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.resources.Workspace.buildInternal(Workspace.java:487) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:406) at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:285) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Exception 2 in Log View:
Submitted by Vlad Vergu on 6 December 2016 at 09:51java.lang.NullPointerException at org.metaborg.spoofax.meta.core.pluto.SpoofaxReporting.canceledBuilderRequiredBuilderFailed(SpoofaxReporting.java:68) at build.pluto.builder.BuildManager.executeBuilder(BuildManager.java:111) at build.pluto.builder.BuildManager.require(BuildManager.java:335) at build.pluto.builder.BuildManager.requireInitially(BuildManager.java:262) at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.plutoBuild(LanguageSpecBuilder.java:304) at org.metaborg.spoofax.meta.core.build.LanguageSpecBuilder.pkg(LanguageSpecBuilder.java:214) at org.metaborg.spoofax.eclipse.meta.build.PackageBuilder$PackageRunnable.run(PackageBuilder.java:44) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267) at org.metaborg.spoofax.eclipse.meta.build.PackageBuilder.build(PackageBuilder.java:124) at org.metaborg.spoofax.eclipse.meta.build.Builder.build(Builder.java:53) 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.resources.Workspace.buildInternal(Workspace.java:487) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:406) at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:285) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Issue Log
On 25 January 2017 at 11:22 Gabriël Konat tagged build
On 25 January 2017 at 11:22 Gabriël Konat tagged pluto
On 25 January 2017 at 11:23 Gabriël Konat commented:
This looks like a Pluto issue, since it is returning a null value somewhere it shouldn’t. Investigating the issue with Sebastian.
On 10 April 2017 at 11:47 Gabriël Konat commented:
This should be fixed in the latest development version, please reopen if this is not the case.
On 10 April 2017 at 11:47 Gabriël Konat closed this issue.
Log in to post comments