我在Tomcat关闭时遇到以下异常:
thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
java.util.TimerThread.mainLoop(Timer.java:526)
java.util.TimerThread.run(Timer.java:505)
我在使用
的服务器中使用嵌入式Derbyorg.apache.derby.iapi.services.timer.TimerFactory
在
中构建TimerThread
java.util.Timer中
导致问题(Stop scheduled timer when shutdown tomcat)。
我该如何解决?