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.

  • PostBuildScript gives NullPointerException for matrix child jobs, Works ok for parent job. From parent log: Triggering value1 Triggering value2 value1 completed with result SUCCESS value2 completed with result SUCCESS [PostBuildScript] - Execution post build scripts. [workspace] $ /bin/sh -xe /tmp/hudson4750159053349493502.sh + echo Post-build action, build step, Execute shell Post-build action, build step, Execute shell + echo PREPARED_ENV_VAR = PREPARED_ENV_VAR = + echo GENERATED_ENV_VAR_FROM_SCRIPT = GENERATED_ENV_VAR_FROM_SCRIPT = + echo INJECTED_ENV_VAR = INJECTED_ENV_VAR = Finished: SUCCESS From child log: ... [EnvInject] - Script executed successfully. [value1] $ /bin/sh -xe /tmp/hudson4061121161659393893.sh + echo Build, Execute shell Build, Execute shell + echo PREPARED_ENV_VAR = PREPARED_ENV_VAR = + echo GENERATED_ENV_VAR_FROM_SCRIPT = yes GENERATED_ENV_VAR_FROM_SCRIPT = yes + echo INJECTED_ENV_VAR = INJECTED_ENV_VAR = Finished: SUCCESS From system log_ 2013-feb-12 11:02:32 hudson.model.Run execute INFO: magjac-matrix-test #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.Run execute INFO: magjac-matrix-test » value1 #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.Run execute INFO: magjac-matrix-test » value2 #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.listeners.RunListener report VARNING: RunListener failed java.lang.NullPointerException at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51) at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195) at hudson.model.Run.execute(Run.java:1552) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) 2013-feb-12 11:02:31 hudson.model.listeners.RunListener report VARNING: RunListener failed java.lang.NullPointerException at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51) at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195) at hudson.model.Run.execute(Run.java:1552) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) 2013-feb-12 11:00:08 hudson.model.Run execute INFO: magjac-trig-test #3 main build action completed: SUCCESS
    via by Magnus Jacobsson,
  • PostBuildScript gives NullPointerException for matrix child jobs, Works ok for parent job. From parent log: Triggering value1 Triggering value2 value1 completed with result SUCCESS value2 completed with result SUCCESS [PostBuildScript] - Execution post build scripts. [workspace] $ /bin/sh -xe /tmp/hudson4750159053349493502.sh + echo Post-build action, build step, Execute shell Post-build action, build step, Execute shell + echo PREPARED_ENV_VAR = PREPARED_ENV_VAR = + echo GENERATED_ENV_VAR_FROM_SCRIPT = GENERATED_ENV_VAR_FROM_SCRIPT = + echo INJECTED_ENV_VAR = INJECTED_ENV_VAR = Finished: SUCCESS From child log: ... [EnvInject] - Script executed successfully. [value1] $ /bin/sh -xe /tmp/hudson4061121161659393893.sh + echo Build, Execute shell Build, Execute shell + echo PREPARED_ENV_VAR = PREPARED_ENV_VAR = + echo GENERATED_ENV_VAR_FROM_SCRIPT = yes GENERATED_ENV_VAR_FROM_SCRIPT = yes + echo INJECTED_ENV_VAR = INJECTED_ENV_VAR = Finished: SUCCESS From system log_ 2013-feb-12 11:02:32 hudson.model.Run execute INFO: magjac-matrix-test #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.Run execute INFO: magjac-matrix-test » value1 #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.Run execute INFO: magjac-matrix-test » value2 #4 main build action completed: SUCCESS 2013-feb-12 11:02:31 hudson.model.listeners.RunListener report VARNING: RunListener failed java.lang.NullPointerException at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51) at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195) at hudson.model.Run.execute(Run.java:1552) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) 2013-feb-12 11:02:31 hudson.model.listeners.RunListener report VARNING: RunListener failed java.lang.NullPointerException at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51) at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195) at hudson.model.Run.execute(Run.java:1552) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) 2013-feb-12 11:00:08 hudson.model.Run execute INFO: magjac-trig-test #3 main build action completed: SUCCESS
    via by Magnus Jacobsson,
    • java.lang.NullPointerException at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51) at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:195) at hudson.model.Run.execute(Run.java:1552) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
    No Bugmate found.