When testing with Derby on Java 1.6.0 I get the following error:
[junit] Running org.apache.tomcat.jdbc.test.StarvationTest
[junit] Testsuite: org.apache.tomcat.jdbc.test.StarvationTest
[junit] AbandonedObjectPool is used
(org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@1d6096)
[junit] LogAbandoned: true
[junit] RemoveAbandoned: true
[junit] RemoveAbandonedTimeout: 5
[junit] 26-Jun-2009 18:33:20
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:20 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:26
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@7bd9f2]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testConnectionStarvation(StarvationTest.java:77)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit] 26-Jun-2009 18:33:27
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:27 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:32
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@50d89c]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testFairConnectionStarvation(StarvationTest.java:98)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 24.25 sec
[junit] Output:
[junit] AbandonedObjectPool is used
(org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@1d6096)
[junit] LogAbandoned: true
[junit] RemoveAbandoned: true
[junit] RemoveAbandonedTimeout: 5
[junit]
[junit] Error:
[junit] 26-Jun-2009 18:33:20
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:20 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:26
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@7bd9f2]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testConnectionStarvation(StarvationTest.java:77)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit] 26-Jun-2009 18:33:27
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:27 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:32
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@50d89c]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testFairConnectionStarvation(StarvationTest.java:98)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit]
[junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 24.25 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] AbandonedObjectPool is used
(org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@1d6096)
[junit] LogAbandoned: true
[junit] RemoveAbandoned: true
[junit] RemoveAbandonedTimeout: 5
[junit] ------------- ---------------- ---------------
[junit] ------------- Standard Error -----------------
[junit] 26-Jun-2009 18:33:20
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:20 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:26
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@7bd9f2]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testConnectionStarvation(StarvationTest.java:77)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit] 26-Jun-2009 18:33:27
org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner <init>
[junit] WARNING: Database connection pool evicter thread interval
is set to lower than 1 second.
[junit] 26-Jun-2009 18:33:27 org.apache.tomcat.jdbc.pool.ConnectionPool init
[junit] WARNING: minIdle is larger than maxActive, setting minIdle to: 1
[junit] 26-Jun-2009 18:33:32
org.apache.tomcat.jdbc.pool.ConnectionPool abandon
[junit] WARNING: Connection has been abandoned
pooledconnection[org.apache.derby.client.net.netconnectio...@50d89c]:java.lang.Exception
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getThreadDump(ConnectionPool.java:781)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:566)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:459)
[junit] at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:138)
[junit] at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:96)
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testFairConnectionStarvation(StarvationTest.java:98)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:120)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit]
[junit] ------------- ---------------- ---------------
[junit] Testcase:
testDBCPConnectionStarvation(org.apache.tomcat.jdbc.test.StarvationTest):
FAILED
[junit] Connection got starved:Cannot get a connection, pool error
Timeout waiting for idle object
[junit] junit.framework.AssertionFailedError: Connection got
starved:Cannot get a connection, pool error Timeout waiting for idle
object
[junit] at
org.apache.tomcat.jdbc.test.StarvationTest.testDBCPConnectionStarvation(StarvationTest.java:67)
[junit]
[junit]
[junit] Test org.apache.tomcat.jdbc.test.StarvationTest FAILED
On 24/06/2009, Filip Hanik - Dev Lists <[email protected]> wrote:
> Cleaned up and fixed.
>
> The release is located here:
> http://people.apache.org/~fhanik/jdbc-pool/v1.0.5/
>
> <ballot>
> [ ] STABLE - I couldn't find any bugs
> [ ] BETA - I found some bugs but not critical
> [ ] BROKEN - I found some show stoppers
> </ballot>
>
> Any comments ?
>
> Thanks,
> Filip
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]