Issue
Jenkins fails to load due to Null Pointer Exception (NPE)
Starting Jenkins causes the following stack trace
hudson.util.HudsonFailedToLoad: java.lang.NullPointerException at hudson.WebAppMain$3.run(WebAppMain.java:237) Caused by: java.lang.NullPointerException at org.jvnet.hudson.plugins.monitoring.NodesListener.getNodesCollector(NodesListener.java:77) at org.jvnet.hudson.plugins.monitoring.NodesListener.onOnline(NodesListener.java:53) at jenkins.model.Jenkins.<init>(Jenkins.java:851) at hudson.model.Hudson.<init>(Hudson.java:83) at hudson.model.Hudson.<init>(Hudson.java:79) at hudson.WebAppMain$3.run(WebAppMain.java:225)
Resolution
Install the Monitoring Plugin v1.60.0 or higher.
See JENKINS-34794.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.