首页 > 解决方案 > tomcat jdbc - ScheduledExecutre 最初插入工作然后失败,没有错误

问题描述

我的 ScheduledExecutorService 运行一些作业。最初对 Oracle 的所有插入都可以正常工作,但它们最终开始以静默方式失败(tomcat 日志中没有错误)。在关闭 tomcat 时,我收到以下警告:

 - web application [myapp] appears to have started a thread named [oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleaser] but has failed to stop it...
 - web application [myapp] appears to have started a thread named [InterruptTimer] but has failed to stop it....

如建议的那样,我唯一的 ojdbc8.jar 在里面,我已经尝试了in 的CATALINA_HOME/lib几种排列shutdown(), shutdownNow()ServletContextListener.contextDestroyed()

没有部署其他 web 应用程序。Oracle 日志中没有出现问题的迹象。

标签: javaoraclejdbcscheduledexecutorservicetomcat8.5

解决方案


推荐阅读