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

Folder loading can be broken by a NPE in a build wrapper in one job

      A user of the Artifactory plugin encountered an error which caused an entire folder to not load:

      ... SEVERE jenkins.InitReactorRunner$1 onTaskFailed 
      Failed Loading job <foldername>
      java.lang.NullPointerException 
      	at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.getProjectActions(ArtifactoryGenericConfigurator.java:210) 
      	at hudson.model.Project.createTransientActions(Project.java:221) 
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:739) 
      	at hudson.model.AbstractProject.onLoad(AbstractProject.java:334) 
      	at hudson.model.Project.onLoad(Project.java:90) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:105) 
      	at com.cloudbees.hudson.plugins.folder.Folder.onLoad(Folder.java:238) 
      	at hudson.model.Items.load(Items.java:276) 
      	at jenkins.model.Jenkins$18.run(Jenkins.java:2593) 
      	at ...
      

      The bug is in the Artifactory plugin, yet Jenkins core ought to have caught this and reported it without breaking loading of the job, much less the whole (top-level) folder.

          [JENKINS-22811] Folder loading can be broken by a NPE in a build wrapper in one job

          Jesse Glick created issue -

          Oleg Nenashev added a comment -

          @Jesse
          Have you submitted a bug to Artifactory plugin?

          Oleg Nenashev added a comment - @Jesse Have you submitted a bug to Artifactory plugin?

          Jesse Glick added a comment -

          @oleg_nenashev I believe the bug was filed (not by me).

          Jesse Glick added a comment - @oleg_nenashev I believe the bug was filed (not by me).

          @oleg_nenashev I filed a bug a bug about this a few weeks ago HAP-484.

          Steven Christou added a comment - @oleg_nenashev I filed a bug a bug about this a few weeks ago HAP-484 .

          Oleg Nenashev added a comment -

          Thanks a lot for the clarification.
          I have not checked the external JIRA.

          Oleg Nenashev added a comment - Thanks a lot for the clarification. I have not checked the external JIRA.
          Steven Christou made changes -
          Component/s New: cloudbees-folder-plugin [ 18137 ]
          Component/s Original: core [ 15593 ]
          Jesse Glick made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: cloudbees-folder-plugin [ 18137 ]
          Steven Christou made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Steven Christou [ schristou ]
          Steven Christou made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-25940 [ JENKINS-25940 ]

            schristou Steven Christou
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: