Hi,
I use c3p0-0.9.1-pre5a [built 16-February-2006 ] version and get below error message sometimes.
Pls suggest a solution.
 
DBConnectionManager[getConnection]=javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: [c3p0 bug] Only brand new IdentityTokenized's, with their identities just set, should be registered!!! Attempted to register com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@17a159b [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 17a159b, idleConnectionTestPeriod -> -1, initialPoolSize -> 3, maxIdleTime -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, nestedDataSource -> null, preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false; userOverrides: {} ] (with identity token 17a159b); Coalesced to com.mchange.v2.c3p0.PoolBackedDataSource@17a159b [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@630763 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> dual, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 630763, idleConnectionTestPeriod -> -1, initialPoolSize -> 10, maxIdleTime -> 10, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@adccd6 [ description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, identityToken -> adccd6, jdbcUrl -> jdbc:oracle:oci8:@test , properties -> {{user=******, password=******}} ], preferredTestQuery -> SELECT * FROM dual, propertyCycle -> 300, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], factoryClassLocation -> null, identityToken -> 17a159b, numHelperThreads -> 10 ](with identity token 17a159b).]
 
 
Thanks,
Prishan