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

NPE with Tool Labels Plugin

XMLWordPrintable

      I've face the NPE error (stacktrace below). The last things I did before this error happened after restart were

      1. Run a multibranch pipeline job which has locked on waiting 'maven' node
      2. Configure Maven tool to auto-label nodes with 'Maven maven Mvn mvn Java java' labels
      3. Restart

      For now after restart I get this stacktrace on every screen, looks like the system tries to run the job and fails

      java.lang.NullPointerException
      	at org.vx68k.hudson.plugin.tool.labels.ToolLabelsFinder.addLabels(ToolLabelsFinder.java:81)
      	at org.vx68k.hudson.plugin.tool.labels.ToolLabelsFinder.findLabels(ToolLabelsFinder.java:111)
      	at org.jenkinsci.plugins.impliedlabels.Config.initialLabels(Config.java:172)
      	at org.jenkinsci.plugins.impliedlabels.Config.evaluate(Config.java:137)
      	at org.jenkinsci.plugins.impliedlabels.Implier.findLabels(Implier.java:48)
      	at hudson.model.Node.getDynamicLabels(Node.java:309)
      	at hudson.model.Node.getAssignedLabels(Node.java:294)
      	at hudson.model.Label.matches(Label.java:187)
      	at hudson.model.Label.getNodes(Label.java:209)
      	at hudson.model.Label.isEmpty(Label.java:436)
      	at jenkins.model.Jenkins.trimLabels(Jenkins.java:2160)
      	at jenkins.model.Nodes$8.run(Nodes.java:334)
      	at hudson.model.Queue._withLock(Queue.java:1342)
      	at hudson.model.Queue.withLock(Queue.java:1219)
      	at jenkins.model.Nodes.load(Nodes.java:324)
      	at jenkins.model.Jenkins$16.run(Jenkins.java:3081)
      	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:1088)
      	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)
      Caused: org.jvnet.hudson.reactor.ReactorException
      	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
      	at jenkins.InitReactorRunner.run(InitReactorRunner.java:47)
      	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1122)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:928)
      	at hudson.model.Hudson.<init>(Hudson.java:86)
      	at hudson.model.Hudson.<init>(Hudson.java:82)
      	at hudson.WebAppMain$3.run(WebAppMain.java:235)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:252)
      

            kazssym Kaz Nishimura
            scaytrase Pavel Batanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: