发布网友 发布时间:2022-04-15 04:19
共2个回答
懂视网 时间:2022-04-15 08:40
connectionmysqljavadbcpexception使用的DBCP连接池和Mysql数据库,偶尔会出现这种异常,不知是什么导致的,并且在出现这个异常的地方进行对Exception的catch,但是奇怪的时捕获不了这种异常,异常一直被传回虚拟机然后打印,请哪位大侠指导一下,具体的异常如下
警告: Connection has been abandoned PooledConnection[com.mysql.jdbc.Connection@5
17667bd]:java.lang.Exception
at org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPo
ol.java:1062)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(Connectio
nPool.java:704)
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(Connectio
nPool.java:631)
at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:4
85)
at org.apache.tomcat.jdbc.pool.ConnectionPool.(ConnectionPool.java
:143)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourcePro
xy.java:116)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProx
y.java:103)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceP
roxy.java:127)
at analyseutil.dbmanager.C3P0ConnectionPool.getConnection(C3P0Connection
Pool.java:38)
at analyseutil.dbmanager.DBManager.findCompanyByName(DBManager.java:41)
at datastore.InsertOrUpdate.handleNextData(InsertOrUpdate.java:108)
at datastore.InsertOrUpdate$1.run(InsertOrUpdate.java:48)
at java.lang.Thread.run(Thread.java:662)
热心网友 时间:2022-04-15 05:48
是webservice吧,有几种可能,第一,服务没启动,第二,密匙不对,第三配置问题,你可以打断点调试