Bernt
> It could be that you're hitting
> https://issues.apache.org/jira/browse/DERBY-2084
> or https://issues.apache.org/jira/browse/DERBY-638
I checked out the 10.1 branch & recompiled and got the same error.
After some fiddling, the problem was that the inUnitOfWork_ variable
was being set to true again when I closed my Statement and ResultSet instances.
e.g.
try
{
...snip...
conn.setAutoCommit( false );
conn.setTransactionIsolation( ... );
...snip...
conn.commit(); // inUnitOfWork_ == false
}
finally
{
try
{
rs.close();
statement.close();
// inUnitOfWork_ == true
conn.close(); // throws SQLException
}
catch( SQLException sqle )
{
...
}
}
Thanks
xanana