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

NPE while loading Cloudbees folders at Jenkins startup

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Windows Server 2008 R2 64bit, Tomcat 7, Jenkins 1.505, latest versions of Cloudbees free plugins

      After we have updated Jenkins from version 1.505 to version 1.511, the following exception prevented the Cloudbees folders to load at startup.

      SEVERE: Failed Loading job modules-spice
      java.lang.NullPointerException
      at com.cloudbees.hudson.plugins.folder.Folder.getItem(Folder.java:465)
      at com.cloudbees.hudson.plugins.folder.Folder.getItem(Folder.java:90)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:291)
      at hudson.maven.MavenModuleSet.onLoad(MavenModuleSet.java:746)
      at hudson.model.Items.load(Items.java:221)
      at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:99)
      at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:189)
      at hudson.model.Items.load(Items.java:221)
      at jenkins.model.Jenkins$17.run(Jenkins.java:2554)
      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:888)
      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)

      I couldn't find any issues in JIRA, but according to Vincent's comment http://jenkins.361315.n4.nabble.com/java-lang-NullPointerException-when-loading-folders-tp4661608p4661953.html, this should be a regression in Jenkins core.

      What could we do to update to the latest version? Right now it looks like the issue still exists in version 1.511 and the mentioned Cloudbees folders plugin 3.6 is not yet listed in the update list. Is it possible that this release is not available in the Cloudbees free plugins, but just in Jenkins Enterprise?

          [JENKINS-17627] NPE while loading Cloudbees folders at Jenkins startup

          Forgot to add the cloudbees-plugin-gateway component.

          Christian Apel added a comment - Forgot to add the cloudbees-plugin-gateway component.

          Jesse Glick added a comment -

          http://release-notes.cloudbees.com/release/Folders/3.6 shows that this was fixed in 3.6. All updates should be available to anyone using the CloudBees update center, not just Jenkins Enterprise licensees.

          Jesse Glick added a comment - http://release-notes.cloudbees.com/release/Folders/3.6 shows that this was fixed in 3.6. All updates should be available to anyone using the CloudBees update center, not just Jenkins Enterprise licensees.

          Unfortunately I can't see the 3.6 release in our plugin update center. We currently have configured the following two URLs:

          http://updates.jenkins-ci.org/update-center.json (main update site)
          http://jenkins-updates.cloudbees.com/update-center/cloudbees-proprietary/update-center.json (is listed under 'Other Sites')

          In the above json file, the following URL is listed for the folders plugin:
          http://jenkins-updates.cloudbees.com/download/plugins/cloudbees-folder/3.5/cloudbees-folder.hpi

          Christian Apel added a comment - Unfortunately I can't see the 3.6 release in our plugin update center. We currently have configured the following two URLs: http://updates.jenkins-ci.org/update-center.json (main update site) http://jenkins-updates.cloudbees.com/update-center/cloudbees-proprietary/update-center.json (is listed under 'Other Sites') In the above json file, the following URL is listed for the folders plugin: http://jenkins-updates.cloudbees.com/download/plugins/cloudbees-folder/3.5/cloudbees-folder.hpi

          Jesse Glick added a comment -

          I see, the UC was serving only plugins compatible with 1.447.x. Try it now.

          Jesse Glick added a comment - I see, the UC was serving only plugins compatible with 1.447.x. Try it now.

          I have downloaded the plugin manually to update Jenkins last Thursday, but after your change there were a few more plugin updates listed (free plugins license, license manager and registration plugin). Thank you for the update and the link to the release notes.

          Christian Apel added a comment - I have downloaded the plugin manually to update Jenkins last Thursday, but after your change there were a few more plugin updates listed (free plugins license, license manager and registration plugin). Thank you for the update and the link to the release notes.

            jglick Jesse Glick
            christianapel Christian Apel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: