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

Copy Artifact sometimes crashes on startup (Jenkins#getDescriptorByType looks sometimes return null)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • copyartifact-plugin, core
    • None
    • openjdk 1.8.0_121
      Jenkins 2.51
      Copy Artifact 1.38.1

      Until very recently, I never had Run Selector installed, and Copy Artifact worked just fine. Today, I updated a bunch of plugins (especially the SCM API 2 stuff) and Jenkins core, and suddenly Copy Artifact failed to initalize with an NPE:

      java.lang.NullPointerException
      at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:156)
      at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
      at hudson.PluginManager$2$1$2.run(PluginManager.java:543)
      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:1064)
      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:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      I initially thought that installing the Run Selector plugin fixed this problem, despite never needing it before and there not being a dependency. However, I have now seen the crash return one time on startup, even with Run Selector installed, and then go away after another restart of Jenkins. So it seems to be nondeterministic and happen during some boots but not others.

        1. fail.log
          16 kB
        2. pass.log
          5 kB

            haw777 Christopher Head
            haw777 Christopher Head
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: