Hi,
we are using DBUnit 2.5.4 and JDK 8 . Some of the Test cases are failing with Closed Connection issue.
`java.sql.SQLRecoverableException: Closed Connection
at oracle.jdbc.driver.PhysicalConnection.prepareStatementInternal(PhysicalConnection.java:1631)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:1606)
at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:1533)
at org.dbunit.database.statement.AbstractPreparedBatchStatement.<init>(AbstractPreparedBatchStatement.java:49)
at org.dbunit.database.statement.SimplePreparedStatement.<init>(SimplePreparedStatement.java:53)
at org.dbunit.operation.RefreshOperation$UpdateRowOperation.<init>(RefreshOperation.java:278)
at org.dbunit.operation.RefreshOperation.createUpdateOperation(RefreshOperation.java:151)
at org.dbunit.operation.RefreshOperation.execute(RefreshOperation.java:103)
at org.dbunit.AbstractDatabaseTester.executeOperation(AbstractDatabaseTester.java:199)
at org.dbunit.AbstractDatabaseTester.onSetup(AbstractDatabaseTester.java:109)
at org.dbunit.DatabaseTestCase.setUp(DatabaseTestCase.java:156)`
Could anyone please take a look.
Hi,
How many tests run? How many fail? Is it that last N tests or mixed throughout the run?
A reproducing test would help a lot. Otherwise, no known issues exist for that in dbUnit; could be test setup/teardown problem(s).
You can try 2.6.0-SNAPSHOT to see if doesn't happen. It's ready for release, just finishing some docs. How to use a snapshot: http://dbunit.sourceforge.net/repos.html
We are facing issue at the time of tear down and out of 10 test cases, 5 test cases are
failing.
Last edit: abhishek giri 2018-09-06