[C3P0]数据源死锁,求助,APPARENT DEADLOCK!!!

问题描述

2014-09-0410:31:19,672[//--]ERRORcom.buyantech.rss.dao.InfoDao-Networkorlinkfails,trytogetthelink!errorMessage:Datatruncation:Datatoolongforcolumn'content'atrow12014-09-0412:04:54,389[//--]WARNcom.mchange.v2.async.ThreadPoolAsynchronousRunner-com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@153a48d--APPARENTDEADLOCK!!!Creatingemergencythreadsforunassignedpendingtasks!2014-09-0412:04:54,389[//--]WARNcom.mchange.v2.async.ThreadPoolAsynchronousRunner-com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@153a48d--APPARENTDEADLOCK!!!CompleteStatus:ManagedThreads:3ActiveThreads:3ActiveTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@17202c0(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12b2f8(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1a3f55e(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)PendingTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@141f864Poolthreadstacktraces:Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]java.net.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)com.mysql.jdbc.ConnectionImpl.loadServerVariables(ConnectionImpl.java:3804)com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3362)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2062)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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-#2,5,main]java.net.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:591)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1070)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:591)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1070)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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)死锁了,求帮忙分析原因....

解决方案

解决方案二:
另外一个日志文件:2014-09-0412:04:54,389[//--]WARNcom.mchange.v2.async.ThreadPoolAsynchronousRunner-com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@153a48d--APPARENTDEADLOCK!!!Creatingemergencythreadsforunassignedpendingtasks!2014-09-0412:04:54,389[//--]WARNcom.mchange.v2.async.ThreadPoolAsynchronousRunner-com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@153a48d--APPARENTDEADLOCK!!!CompleteStatus:ManagedThreads:3ActiveThreads:3ActiveTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@17202c0(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12b2f8(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1a3f55e(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)PendingTasks:com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@141f864Poolthreadstacktraces:Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]java.net.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)com.mysql.jdbc.ConnectionImpl.loadServerVariables(ConnectionImpl.java:3804)com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3362)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2062)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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-#2,5,main]java.net.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:591)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1070)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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.SocketInputStream.socketRead0(NativeMethod)java.net.SocketInputStream.read(SocketInputStream.java:150)java.net.SocketInputStream.read(SocketInputStream.java:121)com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:591)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1070)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)sun.reflect.GeneratedConstructorAccessor17.newInstance(UnknownSource)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:526)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:134)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)
解决方案三:
自己顶..求大神来帮忙....
解决方案四:
自己顶..求大神来帮忙....
解决方案五:
帮顶....
解决方案六:
帮顶....
解决方案七:
帮顶....
解决方案八:
你是之前是正常的然后突然出现这个问题的吗?我之前有过这个问题不过我重新再svn上拉下来一个项目就好了百度了一下有这样的问题他们都说换掉C3P0帮顶!!
解决方案九:
你没用spring吧?
解决方案十:
引用7楼sui2121的回复:

你是之前是正常的然后突然出现这个问题的吗?我之前有过这个问题不过我重新再svn上拉下来一个项目就好了百度了一下有这样的问题他们都说换掉C3P0帮顶!!

开始用的dbcp,也是出问题.后来换成jdbc+c3p0+springmvc了.时间一长,就出问题了....
解决方案十一:
引用8楼yys79的回复:

你没用spring吧?

只用了spring的调度..您看出什么问题了没有?
解决方案十二:
来人,来帮帮忙呀...
解决方案十三:
引用10楼u010811257的回复:

Quote: 引用8楼yys79的回复:
你没用spring吧?

只用了spring的调度..您看出什么问题了没有?

如果只用了spring的调度就不清楚了。如果用普通的spring控制事务,并发量稍微有几个就可能死锁数据源
解决方案十四:
引用12楼yys79的回复:

Quote: 引用10楼u010811257的回复:
Quote: 引用8楼yys79的回复:
你没用spring吧?

只用了spring的调度..您看出什么问题了没有?

如果只用了spring的调度就不清楚了。如果用普通的spring控制事务,并发量稍微有几个就可能死锁数据源

有木有什么解决方案呢?
解决方案十五:
引用13楼u010811257的回复:

Quote: 引用12楼yys79的回复:
Quote: 引用10楼u010811257的回复:
Quote: 引用8楼yys79的回复:
你没用spring吧?

只用了spring的调度..您看出什么问题了没有?

如果只用了spring的调度就不清楚了。如果用普通的spring控制事务,并发量稍微有几个就可能死锁数据源

有木有什么解决方案呢?

我的方案就是不用spring,想在spring框架内解决不行,起码目前是无解。
解决方案:

解决方案:
UP..求人解答..
解决方案:
UP..求人解答..
解决方案:
UP..求人解答..
解决方案:
别求人了,没用,这无解。因为如此,我早抛弃spring了

时间: 2024-11-02 18:40:55

[C3P0]数据源死锁,求助,APPARENT DEADLOCK!!!的相关文章

ssh使用tomcat中配置好的c3p0数据源报错

问题描述 ssh使用tomcat中配置好的c3p0数据源报错 tomcat中对应项目的xml文件配置为: <?xml version="1.0" encoding="UTF-8"?> <Context path="/Village" docBase="D:WorkspacesMyEclipse 10webprojectVillageWebRoot" reloadable= "true" p

ssh框架,c3p0数据源,2个用户访问时数据互串

问题描述 我软件用的是ssh框架,c3p0数据源,weblogic服务+oracle10g64位,这是基本配置,现在出现了一个问题是,A用户和B用户数据互不关联.但A在修改自己的数据的时候,有时候会把B的数据修改掉.求大神指教,如何处理这种情况.spring.xml<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/b

使用spring+c3p0数据源,数据库是mysql。操作数据库直接使用JdbcTemplate,报错

问题描述 启动程序时查询数据库,将数据装入缓存.起来后不做操作,十分钟左右会有以下报错:1027/15:26:03<DEBUG>[com.mchange.v2.c3p0.impl.NewPooledConnection286]AThrowableoccurredwhiletryingtoresetthereadOnlypropertyofourConnectiontofalse!com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectio

Srping管理c3p0数据源时初始化dataSource报异常:Caused by: java.lang.NoClassDefFoundError

问题描述 运行环境:myeclipse6.5+glassfish2+spring2.0.6+c3p0+log4j1.2.11在启动glassfish的时候会报以下错误可以确定的是不少包,log4j,c3p0,spring的包,我都确认过org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'dataSource'definedinfile[C:user_softglassfishdomai

Spring数据源C3P0,DBCP

    Spring在第三方依赖包中包含了两个数据源的实现类包,其一是Apache的DBCP,其二是 C3P0.可以在Spring配置文件中利用这两者中任何一个配置数据源.  DBCP数据源      DBCP类包位于 <spring_home></spring_home>/lib/jakarta-commons/commons-dbcp.jar,DBCP是一个依赖 Jakarta commons-pool对象池机制的数据库连接池,所以在类路径下还必须包括<spring_ho

【锁】Oracle死锁(DeadLock)的分类及其模拟

[锁]Oracle死锁(DeadLock)的分类及其模拟 1  BLOG文档结构图   2  前言部分 2.1  导读和注意事项 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其它你所不知道的知识,~O(∩_∩)O~: ① 死锁的概念及其trace文件 ② 死锁的分类 ③ 行级死锁的模拟 ④ ITL的概念.ITL结构 ⑤ ITL引发的死锁处理 ⑥ ITL死锁的模拟 Tips: ① 本文在itpub(http://blog.itpub.net/26736162).博客园(http

c3p0的配置解释

找到了一个关于c3p0的配置  <c3p0-config>  <default-config>  <!--当连接池中的连接耗尽的时候c3p0一次同时获取的连接数.Default: 3 -->  <property name="acquireIncrement">3</property>  <!--定义在从数据库获取新连接失败后重复尝试的次数.Default: 30 -->  <property name=&q

c3p0连接池问题

问题描述 上网查找资料,发现很多人也遇到了"APPARENT DEADLOCK"的问题http://www.iteye.com/topic/1117330http://www.iteye.com/topic/71051 http://www.iteye.com/topic/22160 http://www.iteye.com/topic/87313 http://www.iteye.com/topic/429677 https://forum.hibernate.org/viewtop

ssh-项目启动时c3p0报错 求大神

问题描述 项目启动时c3p0报错 求大神 com.mchange.v2.async.ThreadPoolAsynchronousRunner]com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@179d578 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks! [com.mchange.v2.async.T