superminipig opened a new issue, #12736:
URL: https://github.com/apache/druid/issues/12736
os: CentOS 7.2 64位
tomcat 8.5.9
jdk: java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
webapp 启动报如下错:
log4j:WARN No appenders could be found for logger
(org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "Druid-ConnectionPool-Destroy-1798532680"
java.lang.NoClassDefFoundError: com/mysql/jdbc/ProfilerEventHandlerFactory
at com.mysql.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:4295)
at com.mysql.jdbc.ConnectionImpl.close(ConnectionImpl.java:1510)
at
com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:169)
at
com.alibaba.druid.filter.FilterAdapter.connection_close(FilterAdapter.java:775)
at
com.alibaba.druid.filter.FilterChainImpl.connection_close(FilterChainImpl.java:165)
at
com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.close(ConnectionProxyImpl.java:115)
at com.alibaba.druid.util.JdbcUtils.close(JdbcUtils.java:83)
at
com.alibaba.druid.pool.DruidDataSource.shrink(DruidDataSource.java:2159)
at
com.alibaba.druid.pool.DruidDataSource$DestroyTask.run(DruidDataSource.java:1957)
at
com.alibaba.druid.pool.DruidDataSource$DestroyConnectionThread.run(DruidDataSource.java:1944)
Caused by: java.lang.ClassNotFoundException: Illegal access: this web
application instance has been stopped already. Could not load
[com.mysql.jdbc.ProfilerEventHandlerFactory]. 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.checkStateForClassLoading(WebappClassLoaderBase.java:1295)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
... 10 more
Caused by: java.lang.IllegalStateException: Illegal access: this web
application instance has been stopped already. Could not load
[com.mysql.jdbc.ProfilerEventHandlerFactory]. 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:1305)
at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1293)
... 12 more
另一台ecs 除了jdk版本是java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
其它环境一样,代码一样。能正常启动。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]