db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xanana Gusmao <gmaneNov.20.geekrun...@spamgourmet.com>
Subject (10.1.1.0) Cannot close active connection
Date Wed, 06 Dec 2006 03:50:51 GMT
Hi,

Version: Derby 10.1.1.0

I'm getting the error message as described in
http://issues.apache.org/jira/browse/DERBY-1149 
when I attempt to close my JDBC
connection. The code:


Connection conn = .... // obtain Connection

try
{
    .... // processing
    conn.commit();
}
catch( Exception e )
{
    JdbcUtil.rollback( conn );    
}
finally
{
    JdbcUtil.closeResultSet( rsRowLock );
    JdbcUtil.closeStatement( statementRowLock );
    JdbcUtil.closeConnection( conn );
}

The SQLException is thrown when I try to close the 
connection (see finally block).




Mime
View raw message