当我们在 Tomcat 8 中启动 WAR 时,我们总是从 JavaMelody 1.78.0 获得 NPE,如下所示。
我在网上找不到任何可能导致它的提示。
[INFO] [talledLocalContainer] java.lang.NullPointerException: null
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.Quartz2Adapter.getAllJobsOfScheduler(Quartz2Adapter.java:149) ~[javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.JobInformations.buildJobInformationsList(JobInformations.java:163) [javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.JavaInformations.<init>(JavaInformations.java:203) [javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.UpdateChecker.getAnonymousData(UpdateChecker.java:136) [javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.UpdateChecker.checkForUpdate(UpdateChecker.java:109) [javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at net.bull.javamelody.internal.model.UpdateChecker$1.run(UpdateChecker.java:83) [javamelody-core-1.78.0.jar:1.78.0]
[INFO] [talledLocalContainer] at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_191-1-redhat]
[INFO] [talledLocalContainer] at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_191-1-redhat]
有谁知道摆脱NPE?如果我需要提供更多详细信息,请告诉我。