启动报错

java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [java.net.URLEncoder]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1305)

at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1293)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)

at org.quartz.utils.UpdateChecker.urlEncode(UpdateChecker.java:156)

at org.quartz.utils.UpdateChecker.buildParamsString(UpdateChecker.java:122)

at org.quartz.utils.UpdateChecker.buildUpdateCheckUrl(UpdateChecker.java:114)

at org.quartz.utils.UpdateChecker.doCheck(UpdateChecker.java:55)

at org.quartz.utils.UpdateChecker.checkForUpdate(UpdateChecker.java:47)

at org.quartz.utils.UpdateChecker.run(UpdateChecker.java:39)

at java.util.TimerThread.mainLoop(Timer.java:555)

at java.util.TimerThread.run(Timer.java:505)


评论区

JFinal

2018-05-16 19:49

quartz 启动的线程为 "非守护线程" 造成的,注意设置一下它的 setDeamon(true) 即可

热门反馈

扫码入社