java.lang.NullPointerException

Jenkins JIRA | Noam Manos | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I've upgraded Jenkins to version 2.0 (!) and to Excusion Plugin 0.12. But now Exclusion plugins blocks my Matrix Multi job configurations. The definition inside the job is: <org.jvnet.hudson.plugins.exclusion.IdAllocator plugin="Exclusion@0.11"> <ids> <org.jvnet.hudson.plugins.exclusion.DefaultIdType> <name>SEMAPHORE_MATRIX_$\{NODE_NAME}</name> </org.jvnet.hudson.plugins.exclusion.DefaultIdType> </ids> </org.jvnet.hudson.plugins.exclusion.IdAllocator> *+On Plugin version 0.12, it fails to load Matrix configurations due to:+* Apr 24, 2016 2:40:10 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.NullPointerException at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) *+On version 0.11, it fails to load Matrix configurations due to:+* Apr 24, 2016 3:35:30 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.IndexOutOfBoundsException: Index: 0, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.remove(ArrayList.java:492) at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 10 months ago | Noam Manos
    java.lang.NullPointerException
  2. 0

    I've upgraded Jenkins to version 2.0 (!) and to Excusion Plugin 0.12. But now Exclusion plugins blocks my Matrix Multi job configurations. The definition inside the job is: <org.jvnet.hudson.plugins.exclusion.IdAllocator plugin="Exclusion@0.11"> <ids> <org.jvnet.hudson.plugins.exclusion.DefaultIdType> <name>SEMAPHORE_MATRIX_$\{NODE_NAME}</name> </org.jvnet.hudson.plugins.exclusion.DefaultIdType> </ids> </org.jvnet.hudson.plugins.exclusion.IdAllocator> *+On Plugin version 0.12, it fails to load Matrix configurations due to:+* Apr 24, 2016 2:40:10 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.NullPointerException at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) *+On version 0.11, it fails to load Matrix configurations due to:+* Apr 24, 2016 3:35:30 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job Automation_Matrix_New java.lang.IndexOutOfBoundsException: Index: 0, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.remove(ArrayList.java:492) at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:173) at hudson.model.Descriptor.toMap(Descriptor.java:986) at hudson.util.DescribableList.toMap(DescribableList.java:151) at hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812) at hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358) at hudson.model.Project.createTransientActions(Project.java:257) at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755) at hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141) at hudson.model.AbstractProject.onLoad(AbstractProject.java:339) at hudson.model.Project.onLoad(Project.java:98) at hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508) at hudson.model.Items.load(Items.java:327) at jenkins.model.Jenkins$18.run(Jenkins.java:2812) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:1009) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 10 months ago | Noam Manos
    java.lang.NullPointerException
  3. 0

    Configure Project is ALWAYS crashing

    Google Groups | 2 years ago | John Lussmyer
    javax.servlet.ServletException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor()
    2. org.jvnet.hudson
      IdAllocator.getDescriptor
      1. org.jvnet.hudson.plugins.exclusion.IdAllocator.getDescriptor(IdAllocator.java:172)
      1 frame
    3. Hudson
      Items.load
      1. hudson.model.Descriptor.toMap(Descriptor.java:986)
      2. hudson.util.DescribableList.toMap(DescribableList.java:151)
      3. hudson.matrix.MatrixProject.getBuildWrappers(MatrixProject.java:812)
      4. hudson.matrix.MatrixConfiguration.getBuildWrappers(MatrixConfiguration.java:358)
      5. hudson.model.Project.createTransientActions(Project.java:257)
      6. hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:755)
      7. hudson.matrix.MatrixConfiguration.updateTransientActions(MatrixConfiguration.java:141)
      8. hudson.model.AbstractProject.onLoad(AbstractProject.java:339)
      9. hudson.model.Project.onLoad(Project.java:98)
      10. hudson.matrix.MatrixConfiguration.onLoad(MatrixConfiguration.java:97)
      11. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:573)
      12. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      13. hudson.matrix.MatrixProject.loadConfigurations(MatrixProject.java:580)
      14. hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:617)
      15. hudson.matrix.MatrixProject.onLoad(MatrixProject.java:508)
      16. hudson.model.Items.load(Items.java:327)
      16 frames
    4. jenkins.model
      Jenkins$18.run
      1. jenkins.model.Jenkins$18.run(Jenkins.java:2812)
      1 frame
    5. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      2 frames
    6. jenkins.model
      Jenkins$8.runTask
      1. jenkins.model.Jenkins$8.runTask(Jenkins.java:1009)
      1 frame
    7. 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
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames