警告: com[email protected]21eb3f -- APPARENT DEADLOCK!!
警告: com[email protected]21eb3f -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2013-7-26 10:16:25 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run
警告: com[email protected]21eb3f -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
[email protected]d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
[email protected]c (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
[email protected]3 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
Pending Tasks:
[email protected]4
[email protected]0
[email protected]
[email protected]2
[email protected]
[email protected]
[email protected]
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
java.lang.Thread.sleep(Native Method)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
2013-7-26 10:16:34 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
警告: [email protected]c -- 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.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:264)
at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:224)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)
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)
2013-7-26 10:16:34 com.mchange.v2.lang.VersionUtils <clinit>
警告: java.version ''1.6.0_10-rc2'' could not be parsed. Defaulting to JDK 1.1.
2013-7-26 10:16:34 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask run
原因:80%以上原因是数据连接配置或数据库等类似问题。
1.jdbc.properties中的配置有问题
jdbc.driverClassName=[your driver class]
jdbc.url=[your db url]
2.没有对应数据库
如果确定以上都没有问题的话。那还有一种可能:
你的SQL server的网络协议没有启动:启动步骤如下:
第一步:
第二步:
第三步:重启一下SQL server服务器
最后问题就解决了