com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1035079 -- APPARENT DEADLOCK!!! C
【com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1035079 -- APPARENT DEADLOCK!!! C】采得百花成蜜后,为谁辛苦为谁甜。这篇文章主要讲述com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1035079 -- APPARENT DEADLOCK!!! C相关的知识,希望能为你提供帮助。
com[email protected]1035079 -- APPARENT DEADLOCK!!! Complete Status: Managed Threads: 3 Active Threads: 3 Active Tasks: [email protected] (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0) [email protected] (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1) [email protected]1 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2) Pending Tasks: [email protected] [email protected] Pool thread stack traces: Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main] java.net.PlainSocketImpl.socketConnect(Native Method) java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) java.net.Socket.connect(Socket.java:529) java.net.Socket.connect(Socket.java:478) java.net.Socket.< init> (Socket.java:375) java.net.Socket.< init> (Socket.java:218) com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) com.mysql.jdbc.MysqlIO.< init> (MysqlIO.java:280) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026) com.mysql.jdbc.ConnectionImpl.< init> (ConnectionImpl.java:718) com.mysql.jdbc.JDBC4Connection.< init> (JDBC4Connection.java:46) sun.reflect.GeneratedConstructorAccessor10.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) com.mysql.jdbc.Util.handleNewInstance(Util.java:406) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282) com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main] java.net.PlainSocketImpl.socketConnect(Native Method) java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) java.net.Socket.connect(Socket.java:529) java.net.Socket.connect(Socket.java:478) java.net.Socket.< init> (Socket.java:375) java.net.Socket.< init> (Socket.java:218) com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) com.mysql.jdbc.MysqlIO.< init> (MysqlIO.java:280) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026) com.mysql.jdbc.ConnectionImpl.< init> (ConnectionImpl.java:718) com.mysql.jdbc.JDBC4Connection.< init> (JDBC4Connection.java:46) sun.reflect.GeneratedConstructorAccessor10.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
1.数据库服务没有启动
以上出现的错误就是我在关闭了自己机器上的mysqld后亲测的一个错误,我的机器上的mysql服务器是默认开启的,但是由于将jar包给同时后,他的机器上其实是没有mysql的,所以会出现错误
2.没有创建对应数据库
在mysql开启的情况下,没有对应数据库的情况下也是会出现这样的问题的
3.就涉及到c3p0连接池的配置文件了,检查c3p0配置文件,ip,端口和数据库名是否配置错误
---------------------
作者:萌萌的卡洛奇
来源:CSDN
原文:https://blog.csdn.net/yuzhongzi81/article/details/41806411
版权声明:本文为博主原创文章,转载请附上博文链接!
推荐阅读
- ----uni-app之修改头像----
- Android Sqlite 批量插入性能优化
- 微信聊天记录能当做借钱的凭证吗?_微信
- 微信PC版不扫二维码登陆的办法_微信
- 林丹8个避孕套动态表情图_微信
- 宝宝有小情绪!林丹带字表情包大全_微信
- 微信大视频是啥?微信大视频介绍_微信
- 微信大视频怎样发?微信发大视频办法_微信
- 微信页面版怎样语音聊天?微信页面版语音聊天办法_微信