java - 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 日志中没有出现问题的迹象。
解决方案
推荐阅读
- django - 如何在视图中使用 django rest 框架 CreateAPI 上传多个图像并在序列化程序中创建方法
- scikit-learn - sklearn.linear_model.SGDClassifier 手动推理多类分类
- typescript - 将参数分配为 TS 枚举的一个值?
- javascript - 通过 XmlService 创建画布元素时出现“canvas1.getContext 不是函数”错误
- php - 使用 mysqli 方法和文件函数将 html 表单资源存储到 mySQL 中时遇到问题
- api - Google Vision API - 对我存储桶中的文件的访问被拒绝
- c++ - 通过 DLL/SO 边界传递异常
- python - 为什么每次单击提交按钮时都会刷新我的网页和烧瓶
- html - 对元素进行更改
- c++ - 设置控制台窗口大小并删除滚动条