java.lang.NullPointerException

Jenkins JIRA | recampbell | 2 years 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

    hudson.tasks.BuildTrigger#getChildProjects(hudson.model.ItemGroup) doesn't check if childProjects is null. Even though childProjects is checked for null in the constructor, this can happen if a BuildTrigger is deserialized from an invalid configuration. What's worse, is that due to JENKINS-26643, this can prevent Jenkins from starting. Example: SEVERE: Failed Finalizing set up java.lang.NullPointerException at java.util.StringTokenizer.<init>(Unknown Source) at java.util.StringTokenizer.<init>(Unknown Source) at hudson.model.Items.fromNameList(Items.java:145) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList(BuildTriggerConfig.java:125) at hudson.plugins.parameterizedtrigger.BuildTrigger.buildDependencyGraph(BuildTrigger.java:74) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:213) at hudson.model.Project.buildDependencyGraph(Project.java:201) at hudson.model.DependencyGraph.build(DependencyGraph.java:95) at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3738) at jenkins.model.Jenkins$20.run(Jenkins.java:2680) 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$7.runTask(Jenkins.java:886) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | recampbell
    java.lang.NullPointerException
  2. 0

    If a DependencyDeclarer throws a RuntimeException from buildDependencyGraph, it can prevent Jenkins from starting. This could happen simply because a project has an invalid configuration, such as in the parameterized trigger plugin. Example: SEVERE: Failed Finalizing set up java.lang.NullPointerException at java.util.StringTokenizer.<init>(Unknown Source) at java.util.StringTokenizer.<init>(Unknown Source) at hudson.model.Items.fromNameList(Items.java:145) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList(BuildTriggerConfig.java:125) at hudson.plugins.parameterizedtrigger.BuildTrigger.buildDependencyGraph(BuildTrigger.java:74) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:213) at hudson.model.Project.buildDependencyGraph(Project.java:201) at hudson.model.DependencyGraph.build(DependencyGraph.java:95) at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3738) at jenkins.model.Jenkins$20.run(Jenkins.java:2680) 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$7.runTask(Jenkins.java:886) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | recampbell
    java.lang.NullPointerException
  3. 0

    hudson.tasks.BuildTrigger#getChildProjects(hudson.model.ItemGroup) doesn't check if childProjects is null. Even though childProjects is checked for null in the constructor, this can happen if a BuildTrigger is deserialized from an invalid configuration. What's worse, is that due to JENKINS-26643, this can prevent Jenkins from starting. Example: SEVERE: Failed Finalizing set up java.lang.NullPointerException at java.util.StringTokenizer.<init>(Unknown Source) at java.util.StringTokenizer.<init>(Unknown Source) at hudson.model.Items.fromNameList(Items.java:145) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList(BuildTriggerConfig.java:125) at hudson.plugins.parameterizedtrigger.BuildTrigger.buildDependencyGraph(BuildTrigger.java:74) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:213) at hudson.model.Project.buildDependencyGraph(Project.java:201) at hudson.model.DependencyGraph.build(DependencyGraph.java:95) at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3738) at jenkins.model.Jenkins$20.run(Jenkins.java:2680) 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$7.runTask(Jenkins.java:886) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | recampbell
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If a DependencyDeclarer throws a RuntimeException from buildDependencyGraph, it can prevent Jenkins from starting. This could happen simply because a project has an invalid configuration, such as in the parameterized trigger plugin. Example: SEVERE: Failed Finalizing set up java.lang.NullPointerException at java.util.StringTokenizer.<init>(Unknown Source) at java.util.StringTokenizer.<init>(Unknown Source) at hudson.model.Items.fromNameList(Items.java:145) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList(BuildTriggerConfig.java:125) at hudson.plugins.parameterizedtrigger.BuildTrigger.buildDependencyGraph(BuildTrigger.java:74) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:213) at hudson.model.Project.buildDependencyGraph(Project.java:201) at hudson.model.DependencyGraph.build(DependencyGraph.java:95) at jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3738) at jenkins.model.Jenkins$20.run(Jenkins.java:2680) 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$7.runTask(Jenkins.java:886) 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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 2 years ago | recampbell
    java.lang.NullPointerException
  6. 0

    indexterm/keyword causees NullPointerException

    GitHub | 5 years ago | jelovirt
    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 java.util.StringTokenizer.<init>()
    2. Java RT
      StringTokenizer.<init>
      1. java.util.StringTokenizer.<init>(Unknown Source)
      2. java.util.StringTokenizer.<init>(Unknown Source)
      2 frames
    3. Hudson
      Items.fromNameList
      1. hudson.model.Items.fromNameList(Items.java:145)
      1 frame
    4. Hudson Parameterized Trigger plugin
      BuildTrigger.buildDependencyGraph
      1. hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getProjectList(BuildTriggerConfig.java:125)
      2. hudson.plugins.parameterizedtrigger.BuildTrigger.buildDependencyGraph(BuildTrigger.java:74)
      2 frames
    5. Hudson
      DependencyGraph.build
      1. hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:213)
      2. hudson.model.Project.buildDependencyGraph(Project.java:201)
      3. hudson.model.DependencyGraph.build(DependencyGraph.java:95)
      3 frames
    6. jenkins.model
      Jenkins$20.run
      1. jenkins.model.Jenkins.rebuildDependencyGraph(Jenkins.java:3738)
      2. jenkins.model.Jenkins$20.run(Jenkins.java:2680)
      2 frames
    7. 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
    8. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:886)
      1 frame
    9. 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
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames