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)
      

          [JENKINS-43959] NPE with Tool Labels Plugin

          Pavel Batanov added a comment -

          Btw the Issue Tracker link from the plugin page leads to invalid search query as the 'tool-labels-plugin' component does not exist. I was also unable to link proper plugin to component

          Pavel Batanov added a comment - Btw the Issue Tracker link from the plugin page leads to invalid search query as the 'tool-labels-plugin' component does not exist. I was also unable to link proper plugin to component

          Pavel Batanov added a comment -

          As a workaround I have to remove the 'tool-labels-plugin', at least I am now able to start the jenkins

          Pavel Batanov added a comment - As a workaround I have to remove the 'tool-labels-plugin', at least I am now able to start the jenkins

          Oleg Nenashev added a comment -

          I have created a component for this plugin.

          From what I see its codebase has not been migrated to GitHub. Asked in IRC if we still have it somewhere. Otherwise we may have to depublish the plugin, CC danielbeck

           

          Oleg Nenashev added a comment - I have created a component for this plugin. From what I see its codebase has not been migrated to GitHub. Asked in IRC if we still have it somewhere. Otherwise we may have to depublish the plugin, CC danielbeck  

          Oleg Nenashev added a comment -

          Created JENKINS-44821 for the missing sources

          Oleg Nenashev added a comment - Created JENKINS-44821 for the missing sources

          Mark Waite added a comment - - edited

          I see the same null pointer exception problem. I've removed the tool-labels-plugin from my environment and confirmed that resolves the issue.

          I updated a few plugins (cmakebuilder, git parameter, metrics, and xunit) and now see the fatal stack trace at startup:

          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:321)
          	at hudson.model.Node.getAssignedLabels(Node.java:306)
          	at hudson.model.Label.matches(Label.java:190)
          	at hudson.model.Label.getNodes(Label.java:222)
          	at hudson.model.Label.isEmpty(Label.java:456)
          	at jenkins.model.Jenkins.trimLabels(Jenkins.java:2104)
          	at jenkins.model.Nodes$9.run(Nodes.java:349)
          	at hudson.model.Queue._withLock(Queue.java:1378)
          	at hudson.model.Queue.withLock(Queue.java:1255)
          	at jenkins.model.Nodes.load(Nodes.java:339)
          	at jenkins.model.Jenkins$14.run(Jenkins.java:3110)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1068)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          	at java.lang.Thread.run(Thread.java:748)
          Caused: org.jvnet.hudson.reactor.ReactorException
          	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
          	at jenkins.InitReactorRunner.run(InitReactorRunner.java:48)
          	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1102)
          	at jenkins.model.Jenkins.<init>(Jenkins.java:904)
          	at hudson.model.Hudson.<init>(Hudson.java:85)
          	at hudson.model.Hudson.<init>(Hudson.java:81)
          	at hudson.WebAppMain$3.run(WebAppMain.java:233)
          Caused: hudson.util.HudsonFailedToLoad
          	at hudson.WebAppMain$3.run(WebAppMain.java:250)
          

          That fatal stack trace was resolved when I removed the tool-labels-plugin from my installation. At initial startup after the plugin removal, an administrative monitor appeared which warned that the cmakebuilder tool had a tool-labels-plugin reference which could not be resolved. I assume that was the root of my problem. The NPE was preceded by my use of a job which auto-installed a cmake version using cmake as a tool. I suspect some interaction between the two was the cause of the fatal exception in my installation.

          It appears that kazssym was maintaining the plugin from a Bitbucket repository. There is a null pointer exception issue reported there. Last commit that I see on that Bitbucket repository was 2 years ago.

          Mark Waite added a comment - - edited I see the same null pointer exception problem. I've removed the tool-labels-plugin from my environment and confirmed that resolves the issue. I updated a few plugins (cmakebuilder, git parameter, metrics, and xunit) and now see the fatal stack trace at startup: 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:321) at hudson.model.Node.getAssignedLabels(Node.java:306) at hudson.model.Label.matches(Label.java:190) at hudson.model.Label.getNodes(Label.java:222) at hudson.model.Label.isEmpty(Label.java:456) at jenkins.model.Jenkins.trimLabels(Jenkins.java:2104) at jenkins.model.Nodes$9.run(Nodes.java:349) at hudson.model.Queue._withLock(Queue.java:1378) at hudson.model.Queue.withLock(Queue.java:1255) at jenkins.model.Nodes.load(Nodes.java:339) at jenkins.model.Jenkins$14.run(Jenkins.java:3110) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1068) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282) at jenkins.InitReactorRunner.run(InitReactorRunner.java:48) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1102) at jenkins.model.Jenkins.<init>(Jenkins.java:904) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:233) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:250) That fatal stack trace was resolved when I removed the tool-labels-plugin from my installation. At initial startup after the plugin removal, an administrative monitor appeared which warned that the cmakebuilder tool had a tool-labels-plugin reference which could not be resolved. I assume that was the root of my problem. The NPE was preceded by my use of a job which auto-installed a cmake version using cmake as a tool. I suspect some interaction between the two was the cause of the fatal exception in my installation. It appears that kazssym was maintaining the plugin from a Bitbucket repository . There is a null pointer exception issue reported there. Last commit that I see on that Bitbucket repository was 2 years ago.

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

              Created:
              Updated: