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

NullpointerException in AdvancedQueueSorterQueueListener and AdvancedQueueSorter on startup

XMLWordPrintable

      NullPointerExceptions during startup. They are caught by calling class, so not major but still, we do not want to log warnings for normal things that can happen.

      There is a null check in AdvancedQueueSorterQueueListener.onEnterBuildable() but not in the other three event methods in the class.

      In AdvancedQueueSorter I see newer code that might have fixed this?

      Sep 29, 2014 10:13:58 AM hudson.model.Queue$BlockedItem enter
      WARNING: QueueListener failed while processing hudson.model.Queue$BlockedItem:hudson.model.FreeStyleProject@470c5677[alo_integration_build]:471
      java.lang.NullPointerException
      at jenkins.advancedqueue.sorter.AdvancedQueueSorterQueueListener.onEnterBlocked(AdvancedQueueSorterQueueListener.java:61)
      at hudson.model.Queue$BlockedItem.enter(Queue.java:1712)
      at hudson.model.Queue.load(Queue.java:372)
      at hudson.model.Queue.init(Queue.java:2075)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105)
      at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:904)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      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)

      Sep 29, 2014 11:05:45 AM hudson.model.Queue$LeftItem enter
      WARNING: QueueListener failed while processing hudson.model.Queue$LeftItem:hudson.model.FreeStyleProject@185eede4[Build-tivotool_Chips]:495
      java.lang.NullPointerException
      at jenkins.advancedqueue.sorter.AdvancedQueueSorter.onLeft(AdvancedQueueSorter.java:131)
      at jenkins.advancedqueue.sorter.AdvancedQueueSorterQueueListener.onLeft(AdvancedQueueSorterQueueListener.java:47)
      at hudson.model.Queue$LeftItem.enter(Queue.java:1884)
      at hudson.model.Queue.onStartExecuting(Queue.java:914)
      at hudson.model.Executor.run(Executor.java:207)

            emsa23 Magnus Sandberg
            marcus_phi Marcus Philip
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: