java.lang.NullPointerException

Jenkins JIRA | Marcus Philip | 2 years ago
  1. 0

    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)

    Jenkins JIRA | 2 years ago | Marcus Philip
    java.lang.NullPointerException
  2. 0

    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)

    Jenkins JIRA | 2 years ago | Marcus Philip
    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 jenkins.advancedqueue.sorter.AdvancedQueueSorterQueueListener.onEnterBlocked()
    2. jenkins.advancedqueue.sorter
      AdvancedQueueSorterQueueListener.onEnterBlocked
      1. jenkins.advancedqueue.sorter.AdvancedQueueSorterQueueListener.onEnterBlocked(AdvancedQueueSorterQueueListener.java:61)
      1 frame
    3. Hudson
      Queue.init
      1. hudson.model.Queue$BlockedItem.enter(Queue.java:1712)
      2. hudson.model.Queue.load(Queue.java:372)
      3. hudson.model.Queue.init(Queue.java:2075)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. Hudson
      TaskMethodFinder$TaskImpl.run
      1. hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105)
      2. hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169)
      2 frames
    6. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      1 frame
    7. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:904)
      1 frame
    8. init
      Reactor$Node.run
      1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      2 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:724)
      3 frames