Hibernate version: 3.0.5
c3p0 version:: 0.9.1
Postgres version: 8.1.4
Below is the end of my Tomcat's log file (catalina.out). As you can see my app is apparently deadlocking during c3p0 initialization. This is on Linux. I have to kill Tomcat with "kill -9" to get out of this.
I am using the identical configuration on Windows and it is working fine: same hibernate, same c3p0, same postgres.
I was getting the exact same behavior on c3p0 version 8.3.2, except I was not seeing the APPARENT DEADLOCK message.
What am I doing wrong? Thanks.
-sbq
End of Tomcat's log file
...
- MLog clients using log4j logging.
- Initializing c3p0-0.9.1-pre9 [built 23-September-2006 01:47:24; debug? true; trace: 10]
- Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@9b024057 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@9db53404 [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> c3p0_connection_test, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 801059, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 120, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 20, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@9c6de8bc [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 7f8062, jdbcUrl -> jdbc:postgresql://deadbeef:5432/reldbx, properties -> {user=******, password=******} ], preferredTestQuery -> null, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> true, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 8a2023, numHelperThreads -> 3 ]
- com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1e536d6 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
|