Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 24036 invoked from network); 9 Jun 2009 17:28:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jun 2009 17:28:25 -0000 Received: (qmail 97861 invoked by uid 500); 9 Jun 2009 17:28:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 97682 invoked by uid 500); 9 Jun 2009 17:28:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 97452 invoked by uid 99); 9 Jun 2009 17:28:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 17:28:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2009 17:28:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC3A9234C1EA for ; Tue, 9 Jun 2009 10:28:10 -0700 (PDT) Message-ID: <1846970596.1244568490704.JavaMail.jira@brutus> Date: Tue, 9 Jun 2009 10:28:10 -0700 (PDT) From: "Eugene Krylov (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (DBCP-293) Closed statement exception using Oracle 11g and JDK Jrockit 1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Closed statement exception using Oracle 11g and JDK Jrockit 1.6 --------------------------------------------------------------- Key: DBCP-293 URL: https://issues.apache.org/jira/browse/DBCP-293 Project: Commons Dbcp Issue Type: Bug Affects Versions: 1.2.1 Environment: dbcp 1.2.1 Oracle 11g, oracle driver from weblogic 10.3 distribution server/ext/jdbc/oracle/11g/ojdbc6.jar, $ java -version java version "1.6.0_05" Java(TM) SE Runtime Environment (build 1.6.0_05-b13) BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-ia32, compiled mode) Reporter: Eugene Krylov 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) Jocl file looks like this: 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.