java.lang.NullPointerException

Jenkins JIRA | Stacey Fletcher | 4 months ago
  1. 0

    I was attempting to trigger a build using the System Groovy Script with the following method call: item.scheduleBuild2(0, new Cause.UpstreamCause(build), new ParametersAction(null)) The passing of null should cause an NPE, but because of this all jobs that were submitted from then on were stuck in our Build Queue. In order to fix it we had to bounce our Jenkins instance. Initial Stack Trace: SEVERE: Timer task hudson.model.LoadStatistics$LoadStatisticsUpdater@1b2ee745 failed java.lang.NullPointerException at hudson.model.ParametersAction.getAssignedLabel(ParametersAction.java:140) at hudson.model.Queue$Item.getAssignedLabelFor(Queue.java:2079) at hudson.model.Label$1.matches(Label.java:120) at hudson.model.LoadStatistics.computeSnapshot(LoadStatistics.java:361) at hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:395) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Stack Traces that occurred on all other jobs is attached.

    Jenkins JIRA | 4 months ago | Stacey Fletcher
    java.lang.NullPointerException
  2. 0

    Provisioning fails, slave left in limbo cannot be removed.

    GitHub | 2 years ago | thomassuckow
    java.lang.NullPointerException
  3. 0

    Jenkins stopped building on pull requests

    GitHub | 2 years ago | surrehman76
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Not starting the trigger causes all triggers to fail.

    GitHub | 2 years ago | DavidTanner
    java.lang.NullPointerException

    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 hudson.model.ParametersAction.getAssignedLabel()
    2. Hudson
      SafeTimerTask.run
      1. hudson.model.ParametersAction.getAssignedLabel(ParametersAction.java:140)
      2. hudson.model.Queue$Item.getAssignedLabelFor(Queue.java:2079)
      3. hudson.model.Label$1.matches(Label.java:120)
      4. hudson.model.LoadStatistics.computeSnapshot(LoadStatistics.java:361)
      5. hudson.model.LoadStatistics$LoadStatisticsUpdater.doRun(LoadStatistics.java:395)
      6. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
      6 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:724)
      7 frames