java.lang.NullPointerException

Jenkins JIRA | Mikhail Cheshkov | 4 years ago
  1. 0

    After upgrade Jenkins to 1.507 I dont see any job, found this in log {noformat} SEVERE: Failed Loading job <jobName> java.lang.NullPointerException at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:220) at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:41) at hudson.model.AbstractProject.onLoad(AbstractProject.java:291) at hudson.model.Items.load(Items.java:221) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:99) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:145) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:41) at hudson.model.Job.onLoad(Job.java:201) at hudson.model.AbstractProject.onLoad(AbstractProject.java:282) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2552) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:887) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) {noformat} When I disable promoted builds plugin, jobs appear again, but w/o promotions, of course.

    Jenkins JIRA | 4 years ago | Mikhail Cheshkov
    java.lang.NullPointerException
  2. 0

    After upgrade Jenkins to 1.507 I dont see any job, found this in log {noformat} SEVERE: Failed Loading job <jobName> java.lang.NullPointerException at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:220) at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:41) at hudson.model.AbstractProject.onLoad(AbstractProject.java:291) at hudson.model.Items.load(Items.java:221) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:99) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:145) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:41) at hudson.model.Job.onLoad(Job.java:201) at hudson.model.AbstractProject.onLoad(AbstractProject.java:282) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2552) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:887) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) {noformat} When I disable promoted builds plugin, jobs appear again, but w/o promotions, of course.

    Jenkins JIRA | 4 years ago | Mikhail Cheshkov
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    It is impossible to load projects using promoted builds. NPE at startup: {noformat} Mar 26, 2013 1:23:01 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading job jobname1 java.lang.NullPointerException at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:220) at hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:41) at hudson.model.AbstractProject.onLoad(AbstractProject.java:291) at hudson.model.Items.load(Items.java:221) at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:99) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:145) at hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:41) at hudson.model.Job.onLoad(Job.java:201) at hudson.model.AbstractProject.onLoad(AbstractProject.java:282) at hudson.model.Project.onLoad(Project.java:83) at hudson.model.Items.load(Items.java:221) at jenkins.model.Jenkins$17.run(Jenkins.java:2552) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:887) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat}

    Jenkins JIRA | 4 years ago | Krzysztof Malinowski
    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.plugins.promoted_builds.JobPropertyImpl.getItem()
    2. hudson.plugins.promoted_builds
      JobPropertyImpl.getItem
      1. hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:220)
      2. hudson.plugins.promoted_builds.JobPropertyImpl.getItem(JobPropertyImpl.java:41)
      2 frames
    3. Hudson
      ItemGroupMixIn.loadChildren
      1. hudson.model.AbstractProject.onLoad(AbstractProject.java:291)
      2. hudson.model.Items.load(Items.java:221)
      3. hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:99)
      3 frames
    4. hudson.plugins.promoted_builds
      JobPropertyImpl.setOwner
      1. hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:145)
      2. hudson.plugins.promoted_builds.JobPropertyImpl.setOwner(JobPropertyImpl.java:41)
      2 frames
    5. Hudson
      Items.load
      1. hudson.model.Job.onLoad(Job.java:201)
      2. hudson.model.AbstractProject.onLoad(AbstractProject.java:282)
      3. hudson.model.Project.onLoad(Project.java:83)
      4. hudson.model.Items.load(Items.java:221)
      4 frames
    6. jenkins.model
      Jenkins$17.run
      1. jenkins.model.Jenkins$17.run(Jenkins.java:2552)
      1 frame
    7. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      2 frames
    8. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:887)
      1 frame
    9. init
      Reactor$Node.run
      1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      2 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:679)
      3 frames