帮忙看下这个日志。谢谢了

chi_9 发布于 2015/04/22 09:52
阅读 1K+
收藏 0

@Jfinal

[WARN]2015-04-21 17:53:34-[Thread: com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1]-[com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run()]:

★ com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@6854d299 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
 java.lang.IllegalStateException: Can't overwrite cause with java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already.  Could not load com.mysql.jdbc.SQLError.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
        at java.lang.Throwable.initCause(Throwable.java:457)
        at org.apache.catalina.loader.WebappClassLoader.checkStateForClassLoading(WebappClassLoader.java:1335)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1216)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1177)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:314)
        at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
        at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
        at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
        at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
        at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
        at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Caused by: java.lang.ClassNotFoundException
        at org.apache.catalina.loader.WebappClassLoader.checkStateForClassLoading(WebappClassLoader.java:1334)

        ... 11 more


用的Jfinal  c3p0连接池 配置信息如下:

jdbcUrl = jdbc:mysql://******:3306/f_shop_web?characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
user = 
password = 
driverClass = com.mysql.jdbc.Driver
maxPoolSize = 60
minPoolSize = 3
initialPoolSize = 3
maxIdleTime = 60
acquireIncrement = 3
idleConnectionTestPeriod = 120

目前未发现应用出现问题,就是一直提示这个警告(每30秒出现3次),看起来应该是连接池的问题,但是没找到原因,请解答

加载中
0
chi_9
chi_9
该评论暂时无法显示,详情咨询 QQ 群:点此入群
chi_9
chi_9
回复 @merlin216 : 貌似还是不知道问题在哪里,项目可以正常的运行,功能上没有任何影响,就是一直有这个日志,查看配置文件也没发现问题,服务器环境也看了,都没发现异常,纠结了。//
m
merlin216
The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
m
merlin216
this web application instance has been stopped already. Could not load com.mysql.jdbc.SQLError。。应用停止之后仍然申请链接,应该没什么问题。。
m
merlin216
嗯,是失败次数超过了30次,所以抛出异常
0
JFinal
JFinal
     是不是数据库没有连接上,比如说用户名密码错误。 最后再检查一下是否有 connection 没有回收,搜索一下项目中有没有  getConnection() 代码,检查一下是否在 finally 块中调用了 conn.close() 进行了回收
0
chi_9
chi_9

引用来自“JFinal”的评论

     是不是数据库没有连接上,比如说用户名密码错误。 最后再检查一下是否有 connection 没有回收,搜索一下项目中有没有  getConnection() 代码,检查一下是否在 finally 块中调用了 conn.close() 进行了回收
应用正常执行,没有任何异常,就是日志中有这个警告而已。项目中也没有使用到 getConnection。
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部