1
undeflife 2019-07-05 23:36:42 +08:00
druid 的 bug.
https://github.com/alibaba/druid/issues/1699 PS:前段时间好有几个人问我数据库闪断不会自动重连,也发现是 druid 的 bug 这个东西是真的并不好,如果对 druid 的监控和扩展功能没有依赖的话,建议用其他的 如 hikari |
2
douleL OP @undeflife 感谢老哥提示 我这边是把 springboot 项目 war 包启动 jar 包方式没问题 但是 war 包 配置 tomcat 8 启动就遇到了 真是头大 我这边尝试下
|
3
douleL OP 06-Jul-2019 18:01:41.414 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
06-Jul-2019 18:01:41.414 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/project_client] startup failed due to previous errors 18:01:41.424 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.s.c.ThreadPoolTaskExecutor - [shutdown,208] - Shutting down ExecutorService 'applicationTaskExecutor' 18:01:41.433 [RMI TCP Connection(2)-127.0.0.1] INFO c.a.d.p.DruidDataSource - [close,1825] - {dataSource-1} closed 06-Jul-2019 18:01:41.440 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [project_client] registered the JDBC driver [com.alibaba.druid.mock.MockDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 06-Jul-2019 18:01:41.440 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [project_client] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 06-Jul-2019 18:01:41.440 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [project_client] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. [2019-07-06 06:01:41,458] Artifact project_client:war exploded: Error during artifact deployment. See server log for details. 06-Jul-2019 18:01:44.619 信息 [Abandoned connection cleanup thread] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. 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:1328) at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1003) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:96) at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:69) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 核心报错如上 |
4
douleL OP |