com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@d3ade7 ,项目启动错误

时间:2022-01-21 18:20:25

在用hibernate,spring,struts,3个框架的做项目的时候,运行tomcat,报了下面一推错误:

 

 

[0629 18:12:30 285 WARN ]     ThreadPoolAsynchronousRunner.java:608 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@d3ade7 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

[0629 18:12:30 301 WARN ]     ThreadPoolAsynchronousRunner.java:624 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@d3ade7 -- APPARENT DEADLOCK!!! Complete Status: 

Managed Threads: 3

Active Threads: 3

Active Tasks: 

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@140fee (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@121fd61 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@82254d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)

Pending Tasks: 

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5f1ae9

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1dfc8a0

com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@ec898a

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)

 

 

 

 

 

 

弄了好久,上网也查了很久,最后没有答案,

 

com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@d3ade7 -- APPARENT DEADLOCK!!!

 

吃了顿饭回来,忽然想到自己都没有在数据库里面创建一个要连接的database,所以才导致这个错误,

 

果断创建数据库,启动项目,OK,问题解决,

 

有时候真的是需要一些灵感,,,,