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

Promoted builds throw NullPointerException after upgrade to 1.507

      After upgrade Jenkins to 1.507 I dont see any job, found this in log

      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)
      

      When I disable promoted builds plugin, jobs appear again, but w/o promotions, of course.

          [JENKINS-17341] Promoted builds throw NullPointerException after upgrade to 1.507

          Mikhail Cheshkov created issue -
          Mikhail Cheshkov made changes -
          Description Original: After upgrade Jenkins to 1.507 I dont see any job, found this in log

          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)


          When I disable promoted builds plugin, jobs appear again, but w/o promotions, of course.
          New: 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.
          Mikhail Cheshkov made changes -
          Environment Original: Ubuntu 12.04
          Jenkins through APT from http://pkg.jenkins-ci.org/debian
          New: Ubuntu 12.04
          Jenkins 1.507 through APT from http://pkg.jenkins-ci.org/debian

          Bruce Edge added a comment -

          Just confirming, I'm seeing this too. All jobs using build promotion fail to load and are missing from the dashboard view.

          Reverting to 1.506 fixes the problem.

          Using Jenkins promoted builds plugin 2.8

          Bruce Edge added a comment - Just confirming, I'm seeing this too. All jobs using build promotion fail to load and are missing from the dashboard view. Reverting to 1.506 fixes the problem. Using Jenkins promoted builds plugin 2.8
          Jason Swager made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Jason Swager added a comment -

          Also experiencing the same problem: Jenkins 1.507 and Promoted plugin 2.8. Using Win2008R2 Server though.
          Raised issue to Critical priority. Any jobs that use the plugin will be appear to have been deleted from Jenkins.
          Reverting Jenkins resolved the problem.

          Jason Swager added a comment - Also experiencing the same problem: Jenkins 1.507 and Promoted plugin 2.8. Using Win2008R2 Server though. Raised issue to Critical priority. Any jobs that use the plugin will be appear to have been deleted from Jenkins. Reverting Jenkins resolved the problem.

          Josh Davidson added a comment -

          Same problem here

          Josh Davidson added a comment - Same problem here

          Also seeing this after upgrade from 1.506 to 1.508 and Jenkins promoted builds plugin 2.9

          Geoff Cummings added a comment - Also seeing this after upgrade from 1.506 to 1.508 and Jenkins promoted builds plugin 2.9

          look forward to the update of the plugin...

          Bao Xiaopan(Bob) added a comment - look forward to the update of the plugin...

          Jesse Glick added a comment -

          Possibly related to JENKINS-3265 fix.

          Jesse Glick added a comment - Possibly related to JENKINS-3265 fix.
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-3265 [ JENKINS-3265 ]

            jglick Jesse Glick
            mcheshkov Mikhail Cheshkov
            Votes:
            14 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved: