java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I have no idea about how this is happening. We have anightly build scheduled for 11PM of all modules in our maven 2 project. Most of this builds fail like this: started Reusing existing maven process [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [clean, install] [INFO] ---------------------------------------------------------------------------- [HUDSON] Archiving null [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at hudson.FilePath.<init>(FilePath.java:144) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:63) at hudson.maven.PluginManagerInterceptor.postBuild(PluginManagerInterceptor.java:80) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:38) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:67) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:160) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:136) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Apr 18 23:11:35 EST 2007 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------
    via by jumper1,
  • I have no idea about how this is happening. We have anightly build scheduled for 11PM of all modules in our maven 2 project. Most of this builds fail like this: started Reusing existing maven process [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [clean, install] [INFO] ---------------------------------------------------------------------------- [HUDSON] Archiving null [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at hudson.FilePath.<init>(FilePath.java:144) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:63) at hudson.maven.PluginManagerInterceptor.postBuild(PluginManagerInterceptor.java:80) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:38) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:67) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:160) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:136) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Apr 18 23:11:35 EST 2007 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------
    via by jumper1,
  • Hi, Jenkins ver. 1.509.3 AnchorChain 1.0 EnvInject Plugin 1.88 We are occasionally hitting this exception. Started by command line by somehost123 [EnvInject] - Loading node environment variables. [EnvInject] - [ERROR] - SEVERE ERROR occurs: java.lang.InterruptedException ERROR: Publisher ru.snowleos.jenkins.anchorchain.LinksPublisher aborted due to exception java.lang.NullPointerException at hudson.FilePath.<init>(FilePath.java:218) at ru.snowleos.jenkins.anchorchain.LinksPublisher.perform(LinksPublisher.java:47) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) at hudson.model.Run.execute(Run.java:1617) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) [BFA] Scanning build for known causes... [BFA] Done. 0s Notifying upstream projects of job completion Finished: FAILURE From the source code, this exception will occur slave are disconnected. But the slaves are online. From the catalina.out, when I check for slave on which these builds were attempted, I don't see any disconnections related errors. The project uses the "Label Expression" to determine the slaves and we have got some 5 nodes in that label! What can be the cause of this failures? Thanks, Dilip
    via by Dilip M,
  • After updating to the latest version of this plugin, there has been an issue with finding the clang scan build reports directory. The plugin is configured with: - *Mark build as unstable when threshold is exceeded?* == unset/false - *Report folder* == clangScanBuildReports (default value) After a project, configured with the plugin has been build, the following exception is seen in the console {code} ERROR: Build step failed with exception java.lang.NullPointerException at hudson.FilePath.isAbsolute(FilePath.java:271) at hudson.FilePath.resolvePathIfRelative(FilePath.java:256) at hudson.FilePath.<init>(FilePath.java:252) at jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.perform(ClangScanBuildPublisher.java:119) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} After some investigation into the source code, the configuration was changed to set *Mark build as unstable when threshold is exceeded?*== set/true (with all other values left as default), this configuration produced a successful result. The difference in behaviour with the configuration change indicates the issue is with the publisher config.jelly and its constructor, however I am not well versed enough in this area to explain why or suggest a fix.
    via by Ross Geddis,
  • Hi, Jenkins ver. 1.509.3 AnchorChain 1.0 EnvInject Plugin 1.88 We are occasionally hitting this exception. Started by command line by somehost123 [EnvInject] - Loading node environment variables. [EnvInject] - [ERROR] - SEVERE ERROR occurs: java.lang.InterruptedException ERROR: Publisher ru.snowleos.jenkins.anchorchain.LinksPublisher aborted due to exception java.lang.NullPointerException at hudson.FilePath.<init>(FilePath.java:218) at ru.snowleos.jenkins.anchorchain.LinksPublisher.perform(LinksPublisher.java:47) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:774) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:724) at hudson.model.Run.execute(Run.java:1617) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) [BFA] Scanning build for known causes... [BFA] Done. 0s Notifying upstream projects of job completion Finished: FAILURE From the source code, this exception will occur slave are disconnected. But the slaves are online. From the catalina.out, when I check for slave on which these builds were attempted, I don't see any disconnections related errors. The project uses the "Label Expression" to determine the slaves and we have got some 5 nodes in that label! What can be the cause of this failures? Thanks, Dilip
    via by Dilip Mahadevappa,
  • After updating to the latest version of this plugin, there has been an issue with finding the clang scan build reports directory. The plugin is configured with: - *Mark build as unstable when threshold is exceeded?* == unset/false - *Report folder* == clangScanBuildReports (default value) After a project, configured with the plugin has been build, the following exception is seen in the console {code} ERROR: Build step failed with exception java.lang.NullPointerException at hudson.FilePath.isAbsolute(FilePath.java:271) at hudson.FilePath.resolvePathIfRelative(FilePath.java:256) at hudson.FilePath.<init>(FilePath.java:252) at jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.perform(ClangScanBuildPublisher.java:119) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) {code} After some investigation into the source code, the configuration was changed to set *Mark build as unstable when threshold is exceeded?*== set/true (with all other values left as default), this configuration produced a successful result. The difference in behaviour with the configuration change indicates the issue is with the publisher config.jelly and its constructor, however I am not well versed enough in this area to explain why or suggest a fix.
    via by Ross Geddis,
    • java.lang.NullPointerException at hudson.FilePath.<init>(FilePath.java:144) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:63) at hudson.maven.PluginManagerInterceptor.postBuild(PluginManagerInterceptor.java:80) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:38) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:67) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:160) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:136) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595)

    Users with the same issue

    Unknown visitor1 times, last one,