c3p0数据源启动抛异常APPARENT DEADLOCK!!!

项目使用c3p0数据源,将项目重新导入eclipse中,抛出以下异常信息:

 
警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@6270b -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2011-6-24 10:51:42 com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run
警告: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@6270b -- APPARENT DEADLOCK!!! Complete Status: 
	Managed Threads: 3
	Active Threads: 3
	Active Tasks: 
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4ef630 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4ec59 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@138d56e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
	Pending Tasks: 
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@442c76
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c30993
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1a9cf52
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@16a23cf
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@155035a
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4f3ba2
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1d41318
Pool thread stack traces:
	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)
	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)


查看原因是由于,c3p0配置中url属性里多了个空格引起的。

你可能感兴趣的:(java,eclipse,thread)