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

NPE from PluginManager

XMLWordPrintable

      When you try to install a plugin that is missing some dependencies or otherwise fails to start, SEVERE: Failed Loading plugin … or SEVERE: Failed Initializing plugin … with a detailed stack trace is shown, which is fine. But then you also get

      … jenkins.InitReactorRunner$1 onTaskFailed
      SEVERE: Failed Initializing plugin …
      java.lang.NullPointerException
      	at hudson.PluginManager$2$1$2.run(PluginManager.java:349)
      	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:883)
      	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:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:722)
      

      which is pretty clumsy—p.getPlugin() is null yet this is not being checked.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: