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

Disk Usage plugin throws NullPointerException preventing Maven jobs from loading

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • disk-usage-plugin
    • None
    • Ubuntu server Jenkins environment

      In latest release:

      We upgraded to version .24 from .23 of the disk usage plugin, and it caused our Maven Project jobs to no longer show up and were not accessible in Jenkins UI. Config.xml files still existed on the server

      From inspecting the logs we saw this stack

      Aug 08, 2014 1:51:38 PM jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Loading job ourjobname
      java.lang.NullPointerException
      	at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:971)
      	at hudson.maven.AbstractMavenProject.createTransientActions(AbstractMavenProject.java:184)
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:740)
      	at hudson.maven.MavenModule.updateTransientActions(MavenModule.java:485)
      	at hudson.model.AbstractProject.save(AbstractProject.java:304)
      	at hudson.plugins.disk_usage.DiskUsageProperty.setOwner(DiskUsageProperty.java:150)
      	at hudson.model.Job.onLoad(Job.java:213)
      	at hudson.model.AbstractProject.onLoad(AbstractProject.java:318)
      	at hudson.maven.MavenModule.onLoad(MavenModule.java:283)
      	at hudson.model.Items.load(Items.java:279)
      	at hudson.model.ItemGroupMixIn.loadChildren(ItemGroupMixIn.java:108)
      	at hudson.maven.MavenModuleSet.onLoad(MavenModuleSet.java:790)
      	at hudson.model.Items.load(Items.java:279)
      	at jenkins.model.Jenkins$18.run(Jenkins.java:2599)
      	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:885)
      	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(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745) 
      

          [JENKINS-24182] Disk Usage plugin throws NullPointerException preventing Maven jobs from loading

          Daniel Beck added a comment -

          Did you try downgrading the plugin?

          Daniel Beck added a comment - Did you try downgrading the plugin?

          yep it fixed the issue.. jobs are back.. but wanted to report the issue with latest release

          Lorelei McCollum added a comment - yep it fixed the issue.. jobs are back.. but wanted to report the issue with latest release

          Per J. Lund added a comment -

          Just wanted to say that we experience the same problem.
          Downgrading brings back the jobs.

          Per J. Lund added a comment - Just wanted to say that we experience the same problem. Downgrading brings back the jobs.

          Mark Klunder added a comment -

          Same issue also occurred for us. On a side note the folder that contained the jobs with the configuration problem would not be displayed on the UI. Downgrading resolved the issue.

          Mark Klunder added a comment - Same issue also occurred for us. On a side note the folder that contained the jobs with the configuration problem would not be displayed on the UI. Downgrading resolved the issue.

          Same problem here, downgrading to 0.23 resolved the issue.

          Pei-Tang Huang added a comment - Same problem here, downgrading to 0.23 resolved the issue.

          Same here with disk usage 0.24 on Jenkins LTS 1.554.2. Downgrade to 0.23 works. Only some jobs throw exception and are hidden during start-up. Those hidden are some Maven-type jobs, but not all of them. Each job which had this problem was created as a copy of other job ( if that helps in any way ).

          Peter Kolínek added a comment - Same here with disk usage 0.24 on Jenkins LTS 1.554.2. Downgrade to 0.23 works. Only some jobs throw exception and are hidden during start-up. Those hidden are some Maven-type jobs, but not all of them. Each job which had this problem was created as a copy of other job ( if that helps in any way ).

          Any progress?

          Pei-Tang Huang added a comment - Any progress?

          Jenkins 1.598 has better guards when AbstractProject.createTransientAction throwing exceptions.

          Steven Christou added a comment - Jenkins 1.598 has better guards when AbstractProject.createTransientAction throwing exceptions.

          I created PR 27 to fix this issue.

          Steven Christou added a comment - I created PR 27 to fix this issue.

            schristou Steven Christou
            lorelei Lorelei McCollum
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: