Tomcat关闭:无法停止Timer-0

时间:2017-12-14 13:21:30

标签: java multithreading tomcat timer derby

我在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)

我在使用

的服务器中使用嵌入式Derby
  

org.apache.derby.iapi.services.timer.TimerFactory

中构建TimerThread
  

java.util.Timer中

导致问题(Stop scheduled timer when shutdown tomcat)。

我该如何解决?

0 个答案:

没有答案