Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D0C17A23 for ; Mon, 5 Dec 2011 13:12:02 +0000 (UTC) Received: (qmail 73717 invoked by uid 500); 5 Dec 2011 13:12:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 73638 invoked by uid 500); 5 Dec 2011 13:12:02 -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 73599 invoked by uid 99); 5 Dec 2011 13:12:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 13:12:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 13:12:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0FFE7C621C for ; Mon, 5 Dec 2011 13:11:41 +0000 (UTC) Date: Mon, 5 Dec 2011 13:11:41 +0000 (UTC) From: "Naozumi Taromaru (Created) (JIRA)" To: issues@commons.apache.org Message-ID: <901363802.41062.1323090701066.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DBCP-372) Statement Leak occurs when batch update is used. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Statement Leak occurs when batch update is used. ------------------------------------------------ Key: DBCP-372 URL: https://issues.apache.org/jira/browse/DBCP-372 Project: Commons Dbcp Issue Type: Bug Affects Versions: 1.4, 1.3 Environment: Oracle 11g Reporter: Naozumi Taromaru Priority: Critical org.apache.commons.dbcp.PoolablePreparedStatement#passivate() execute clearBatch(). (DBCP-264) But this clearBatch() throw SQLException. (DelegatingStatement#checkOpen() throw SQLException, because _closed is true.) The result, the PoolablePreparedStatement doesn't return to pool, and the PoolablePreparedStatement doesn't execute PreparedStatement#close(). When a lot of data is processed, in the case of Oracle * ORA-00604 * ORA-01000 occurs. Proposal: "clearBatch();" in passivate() method changes as follows. batchAdded = false; getInnermostDelegate().clearBatch(); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira