Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50407

NPE from SandboxContinuable.run0 after restart

    Details

    • Similar Issues:

      Description

      In this build I observed

      ...
      Running in Durability level: PERFORMANCE_OPTIMIZED
      ...
      Resuming build at ... after Jenkins restart
      [Pipeline] End of Pipeline
      
      GitHub has been notified of this commit's build result
      
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:43)
      	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:331)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:82)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:243)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:231)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
      	at ...
      Finished: FAILURE
      

      The flow graph is also missing. Not sure what happened here.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/org/jenkinsci/plugins/workflow/cps/SandboxContinuable.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/5d08569babf0249ddd3b0723bcf5671df1e48ac7
            Log:
            JENKINS-50407 Trying to diagnose an NPE.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/cps/SandboxContinuable.java http://jenkins-ci.org/commit/workflow-cps-plugin/5d08569babf0249ddd3b0723bcf5671df1e48ac7 Log: JENKINS-50407 Trying to diagnose an NPE.
            Hide
            svanoort Sam Van Oort added a comment -

            Resolved as of workflow-cps 2.47 and workflow-job 2.18

            Show
            svanoort Sam Van Oort added a comment - Resolved as of workflow-cps 2.47 and workflow-job 2.18
            Hide
            drulli Ulli Hafner added a comment -

            I'm not sure if this is interesting for this issue: I got the following exception in my CI build:

            java.lang.IllegalStateException: JENKINS-50407: no loaded shell in CpsFlowExecution[Owner[Plugins/warnings-ng-plugin/PR-551/5:Plugins/warnings-ng-plugin/PR-551 #5]]
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:35)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
            17:27:21  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
            17:27:21  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            17:27:21  	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
            17:27:21  	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
            17:27:21  	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
            17:27:21  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            17:27:21  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            17:27:21  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            17:27:21  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            17:27:21  	at java.base/java.lang.Thread.run(Thread.java:834)
            
            Show
            drulli Ulli Hafner added a comment - I'm not sure if this is interesting for this issue: I got the following exception in my CI build : java.lang.IllegalStateException: JENKINS-50407: no loaded shell in CpsFlowExecution[Owner[Plugins/warnings-ng-plugin/PR-551/5:Plugins/warnings-ng-plugin/PR-551 #5]] 17:27:21 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:35) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276) 17:27:21 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67) 17:27:21 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 17:27:21 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) 17:27:21 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 17:27:21 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) 17:27:21 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 17:27:21 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 17:27:21 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 17:27:21 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 17:27:21 at java.base/java.lang.Thread.run(Thread.java:834)
            Hide
            bitwiseman Liam Newman added a comment -

            Ulli Hafner The next time you see this issue, please provide some of the logs before and after the exception for context.  Thanks!

             

            Show
            bitwiseman Liam Newman added a comment - Ulli Hafner The next time you see this issue, please provide some of the logs before and after the exception for context.  Thanks!  
            Hide
            drulli Ulli Hafner added a comment -

            Yes I will try. The exception occurred on the Jenkins CI instance where I do not have access to the logs...

            Show
            drulli Ulli Hafner added a comment - Yes I will try. The exception occurred on the Jenkins CI instance where I do not have access to the logs...

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: