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

Classic plugin loading with PluginServletFilter can fail to add a Filter even when one jenkins is already initialized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      When starting jenkins with the JIRA plugin the following NullPointerException is thrown:

      10:29:54,996 INFO  [com.marvelution.jenkins.plugins.jira.JIRAPlugin] (Loading plugin jenkins-jira-plugin) Adding the required filters
      10:29:54,997 SEVERE [jenkins.InitReactorRunner] (pool-12-thread-4) Failed Loading plugin jenkins-jira-plugin: java.io.IOException: Failed to initialize
      	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:439) [jenkins-core-1.614.jar:]
      	at hudson.PluginManager$2$1$1.run(PluginManager.java:371) [jenkins-core-1.614.jar:]
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) [task-reactor-1.4.jar:]
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) [task-reactor-1.4.jar:]
      	at jenkins.model.Jenkins$7.runTask(Jenkins.java:905) [jenkins-core-1.614.jar:]
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) [task-reactor-1.4.jar:]
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) [task-reactor-1.4.jar:]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
      Caused by: java.lang.NullPointerException
      	at hudson.util.PluginServletFilter.addFilter(PluginServletFilter.java:99) [jenkins-core-1.614.jar:]
      	at com.marvelution.jenkins.plugins.jira.JIRAPlugin.start(JIRAPlugin.java:78)
      	at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:447) [jenkins-core-1.614.jar:]
      	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:436) [jenkins-core-1.614.jar:]
      	... 9 more
      

      https://github.com/jenkinsci/jenkins/pull/1716
      https://marvelution.atlassian.net/browse/JJI-188

            manuel_b Manuel Blechschmidt
            manuel_b Manuel Blechschmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: