Description

After upgrade to latest version of weblogic which now includes jdk 1.6 I am running into an exception where statements appear to be closed but still reside in the statement cache. It appears related to transaction rollback and closing of connection for which statement was originally prepared. Exception stack is as follows:
java.sql.SQLException: Closed Statement
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
at oracle.jdbc.driver.OracleClosedStatement.setQueryTimeout(OracleClosedStatement.java:2438)
at oracle.jdbc.driver.OracleStatementWrapper.setQueryTimeout(OracleStatementWrapper.java:250)
at org.apache.commons.dbcp.DelegatingStatement.setQueryTimeout(DelegatingStatement.java:246)
at org.apache.commons.dbcp.DelegatingStatement.setQueryTimeout(DelegatingStatement.java:246)
at com.healthedge.j2ee.DBConnectionImpl.prepareStatement(DBConnectionImpl.java:208)

<!--
The first argument to PoolableConnectionFactory is a ConnectionFactory.
We'll use a DriverManagerConnectionFactory, passing in the appropriate
connect string for the underlying driver.
-->
<object class="org.apache.commons.dbcp.DriverManagerConnectionFactory">
<string value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<string value="schema"/>
<string value="password"/>

</object>

<!--
The next argument is the pool to use. We'll use a StackObjectPool,
although any implementation of ObjectPool should suffice.

Since we are running on single connection from the client anyway,
there is not a need to tune this to perfection.
-->
<object class="org.apache.commons.pool.impl.StackObjectPool"/>

<!--
The next argument is the KeyedObjectPoolFactory to use to create pools
for storing PreparedStatements. This functionality is optional, it can
be disabled by using the line below.

<!--
The next argument is the query to use to validate that a Connection is
still up and running. It should return at least one row.
This functionality is optional. We'll just set it to null.
<string null="true"/>
-->
<string value="select 1 from age_range"/>
<boolean value="false"/> <!-- The default "read only" value for Connections. -->
<boolean value="false"/> <!-- The default "auto commit" value for Connections. -->

</object>

Disabling statement cache eliminates the exception.

This is my first time reporting an issue in this forum, so if I filed it in a wrong place please let me know. I searched bugs, but have not found anything that would be similar to this.