I tried all the solutions found on the forum, sadly to no avail. When I reset the database, c3p0 hangs with the dreaded deadlock problem. The only way to restore the connection then is to restart the portlet or the app server, any wait doesn't help otherwise.
I use c3p0+hibernate on glassfish, with spring. I don't think that glassfish rather than tomcat changes anything. c3p0 version 0.9.1.2, I'm not 100% sure that it's the version glassfish is using but I don't see any other c3p0 jar around, and I can't find the version in the log files anywhere.
The configuration:
- persistence.xml
Code:
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="fpt_crawlerPU" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>data.model.Site</class>
<class>data.model.Species</class>
<class>data.model.Crawl</class>
<properties>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
<property name="hibernate.connection.url" value="jdbc:postgresql://fishdb.jrc.org:5432/fpt_crawler"/>
<property name="hibernate.max_fetch_depth" value="0"/>
<property name="hibernate.cache.region_prefix" value="hibernate.test"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<!-- configuration pool via c3p0-->
<property name="c3p0.acquire_increment" value="1"/>
<property name="c3p0.idle_test_period" value="300"/>
<property name="c3p0.max_size" value="10"/>
<property name="c3p0.max_statements" value="0"/>
<property name="c3p0.min_size" value="1"/>
<property name="c3p0.timeout" value="300"/>
<property name="c3p0.validate" value="false" />
</properties>
</persistence-unit>
- c3p0.properties:
Code:
c3p0.acquireRetryAttempts=0
c3p0.breakAfterAcquireFailure=false
c3p0.testConnectionOnCheckout=true
c3p0.maxStatements=0
c3p0.maxStatementsPerConnection=100
The logs:
1. c3p0 settings
Code:
[#|2009-08-21T13:03:35.813+0200|INFO|glassfish|null|_ThreadID=27;_ThreadName=Thread-4;|2343 [AutoDeployer] DEBUG org.hibernate.ejb.Ejb3Configuration.configure - Processing PersistenceUnitInfo [
name: fpt_crawlerPU
persistence provider classname: org.hibernate.ejb.HibernatePersistence
classloader: WebappClassLoader
delegate: true
repositories:
WEB-INF/classes/
----------> Parent Classloader:
org.glassfish.internal.api.DelegatingClassLoader@55108e
Temporary classloader: org.springframework.instrument.classloading.SimpleThrowawayClassLoader@1e1b1cf
excludeUnlistedClasses: false
JTA datasource: null
Non JTA datasource: null
Transaction type: RESOURCE_LOCAL
PU root URL: file:/home/glassfish/glassfishv3-prelude/glassfish/domains/domain1/applications/FPTCrawler/WEB-INF/classes/
Jar files URLs []
Managed classes names [
data.model.Site
data.model.Species
data.model.Crawl]
Mapping files names []
Properties [
c3p0.validate: false
hibernate.connection.driver_class: org.postgresql.Driver
c3p0.min_size: 1
hibernate.cache.provider_class: org.hibernate.cache.HashtableCacheProvider
hibernate.max_fetch_depth: 0
c3p0.timeout: 300
c3p0.idle_test_period: 300
hibernate.connection.username: fpt_crawler_admin
hibernate.cache.region_prefix: hibernate.test
hibernate.hbm2ddl.auto: update
c3p0.acquire_increment: 1
c3p0.max_size: 10
hibernate.connection.url: jdbc:postgresql://fishdb.jrc.org:5432/fpt_crawler
hibernate.connection.password: fpt_crawler_admin1
c3p0.max_statements: 0]
Seems it gets the configs correctly.
2. the error:
Code:
[#|2009-08-21T13:18:38.988+0200|INFO|glassfish|null|_ThreadID=38;_ThreadName=Thread-4;|13:18:38,988 WARN [ThreadPoolAsynchronousRunner:624] com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@f967da -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 10
Active Threads: 10
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@723352 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@18777ce (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#8)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@ca806c (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@b56c4d (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@d97438 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5d25b0 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1556cfa (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@165ce4b (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@caa2be (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@182a6ed (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@9d1888
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1b5c8a2
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1871b1f
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@105ce8e
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@3bd76a
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@bb88e3
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1803f9
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@ace919
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1fba634
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5cb053
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@13c3b2e
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@15173b3
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@82f8ba
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@97aee3
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@5ae371
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@10a4330
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@c109f9
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@175e2d3
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@7ebda8
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@d589e1
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@14f2bd3
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c6338c
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@62465e
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1f9fffd
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@154443
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@34a56b
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@584525
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12390ba
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1f2a4f2
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@12b1619
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1b7d34b
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@19104af
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1ca9174
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@136800
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@11169d
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1e3a5a8
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@90e298
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c862b
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@3c89b2
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@740850
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1cdf5dd
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c8aa20
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@192fcb
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@190bfa8
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@16baae
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3a05f7
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@15db5ea
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1523d54
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@387853
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@163b83d
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@1d4b4af
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#8,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Co|#]
[#|2009-08-21T13:18:38.988+0200|INFO|glassfish|null|_ThreadID=38;_ThreadName=Thread-4;|nnection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#0,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#3,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#7,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.post|#]
[#|2009-08-21T13:18:38.988+0200|INFO|glassfish|null|_ThreadID=38;_ThreadName=Thread-4;|gresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#6,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#9,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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-#5,5,main]
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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.PlainSocketImpl.socketConnect(Native Method)
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
java.net.Socket.connect(Socket.java:542)
java.net.Socket.connect(Socket.java:492)
java.net.Socket.<init>(Socket.java:389)
java.net.Socket.<init>(Socket.java:203)
org.postgresql.core.PGStream.<init>(PGStream.java:62)
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Con|#]
[#|2009-08-21T13:18:38.989+0200|INFO|glassfish|null|_ThreadID=38;_ThreadName=Thread-4;|nection.java:30)
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
org.postgresql.Driver.makeConnection(Driver.java:386)
org.postgresql.Driver.connect(Driver.java:260)
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)
|#]
I need a workaround for this, any suggestions?