java.lang.NullPointerException

Jenkins JIRA | Magnus Jacobsson | 4 years ago
  1. 0

    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

    Jenkins JIRA | 4 years ago | Magnus Jacobsson
    java.lang.NullPointerException
  2. 0

    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

    Jenkins JIRA | 4 years ago | Magnus Jacobsson
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher()
    2. org.jenkinsci.plugins
      PostBuildScriptListener.onStarted
      1. org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.putLastListPostBuildPublisher(PostBuildScriptListener.java:51)
      2. org.jenkinsci.plugins.postbuildscript.PostBuildScriptListener.onStarted(PostBuildScriptListener.java:36)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.model.listeners.RunListener.fireStarted(RunListener.java:195)
      2. hudson.model.Run.execute(Run.java:1552)
      3. hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:236)
      5 frames