Null pointer exception in call-onsave
Submitted by Eddy Bertoluzzo on 14 March 2014 at 09:34call-onsave: [java] java.lang.NullPointerException [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [java] at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [java] at org.apache.tools.ant.Task.perform(Task.java:348) [java] at org.apache.tools.ant.Target.execute(Target.java:392) [java] at org.apache.tools.ant.Target.performTasks(Target.java:413) [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [java] at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672) [java] at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378) [java] at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSameVM(AntLaunchDelegate.java:307) [java] at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:260) [java] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858) [java] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707) [java] at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:700) [java] at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.launchBuild(ExternalToolBuilder.java:181) [java] at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.doBuildBasedOnScope(ExternalToolBuilder.java:169) [java] at org.eclipse.core.externaltools.internal.model.ExternalToolBuilder.build(ExternalToolBuilder.java:88) [java] at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733) [java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [java] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) [java] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) [java] at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) [java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) [java] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) [java] at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) [java] at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) [java] at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514) [java] at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:433) [java] at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305) [java] at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) [java] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) [java] Caused by: java.lang.NullPointerException [java] at org.strategoxt.imp.runtime.Environment.getDescriptor(Environment.java:386) [java] at org.strategoxt.imp.runtime.FileState.getFile(FileState.java:66) [java] at org.strategoxt.imp.metatooling.building.AntForceOnSave.main(AntForceOnSave.java:17) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] at java.lang.reflect.Method.invoke(Method.java:606) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) [java] ... 46 more [java] Java Result: -1
Issue Log
On 14 March 2014 at 11:10 Gabriël Konat commented:
I’ve added some guarding and error message handling in https://github.com/metaborg/spoofax/commit/e0de7671d65adcb1f85d093ece1a2910974b3725. Can you check with the nightly version of Spoofax after it is done building? (status at http://hydra.nixos.org/jobset/spoofax/spoofax-master)
Log in to post comments