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

NullPointerException from working-hours-plugin after restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • working-hours-plugin
    • None
    • Jenkins v. 2.485
      Working Hours Plugin v. 1.1
      Windows Server 2022 Datacenter 21H2

      Job was in queue waiting for working hours. Jenkins was restarted to apply updates.

      Log is a follows:
      [Pipeline] Start of Pipeline[Pipeline] nodeStill waiting to schedule task
      This job is configured to run outside of working hours during the critical deployment window (between 23:00 and midnight).Pausing (Preparing for shutdown)
      Resuming build at Wed Nov 13 11:04:14 CST 2024 after Jenkins restartRunning on Jenkins in C:\Program Files (x86)\Jenkins\workspace\SageApi_main[Pipeline] // nodeReady to run at Wed Nov 13 11:04:14 CST 2024[Pipeline] {[Pipeline] End of PipelineAlso: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 04282b95-c0fb-4753-a177-d44c9d833256
      java.lang.NullPointerException: Cannot read field "head" because the return value of "org.jenkinsci.plugins.workflow.cps.CpsThread.current()" is null
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyExecution.addBodyEndFlowNode(CpsBodyExecution.java:417)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:348)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyExecution.launch(CpsBodyExecution.java:159)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyInvoker.launch(CpsBodyInvoker.java:188)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyInvoker.launch(CpsBodyInvoker.java:183)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyInvoker$1.onSuccess(CpsBodyInvoker.java:159)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsBodyInvoker$1.onSuccess(CpsBodyInvoker.java:154)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:995)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$2(CpsVmExecutorService.java:85)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50)
      at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
      at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
      at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50)
      at java.base/java.lang.Thread.run(Thread.java:833)

      GitHub has been notified of this commit's build result

      Finished: FAILURE
      Using the following option in the declarative pipeline:

      options {
      {{{}    enforceBuildSchedule(branches: ['main'])
      {}}}}//options

            jeffpearce Jeff Pearce
            nathan_pipestone Nathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: