commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naozumi Taromaru (Created) (JIRA)" <>
Subject [jira] [Created] (DBCP-372) Statement Leak occurs when batch update is used.
Date Mon, 05 Dec 2011 13:11:41 GMT
Statement Leak occurs when batch update is used.

                 Key: DBCP-372
             Project: Commons Dbcp
          Issue Type: Bug
    Affects Versions: 1.4, 1.3
         Environment: Oracle 11g
            Reporter: Naozumi Taromaru
            Priority: Critical

execute clearBatch().

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


"clearBatch();" in passivate() method
changes as follows.

batchAdded = false;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message