Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 16968 invoked from network); 30 Mar 2006 20:08:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2006 20:08:44 -0000 Received: (qmail 61579 invoked by uid 500); 30 Mar 2006 20:08:38 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 61526 invoked by uid 500); 30 Mar 2006 20:08:38 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 61515 invoked by uid 99); 30 Mar 2006 20:08:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 12:08:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [82.209.166.4] (HELO smtp.bredband2.net) (82.209.166.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 12:08:36 -0800 Received: (qmail 32075 invoked from network); 30 Mar 2006 20:12:58 -0000 Received: from me-155-122-233-83.3.cust.bredband2.com (HELO [192.168.0.100]) ([83.233.122.155]) (envelope-sender ) by smtp.bredband2.net (qmail-ldap-1.03) with SMTP for ; 30 Mar 2006 20:12:58 -0000 Message-ID: <442C3AB5.3000706@apache.org> Date: Thu, 30 Mar 2006 22:08:21 +0200 From: Dennis Lundberg User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: Connection not getting released to pool .. ORA-01453 error References: <6bde122b0603241816h3eb94db9v56db32446b5f6a6f@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N vivek sar wrote: > Hi, > > I don't have stack trace for the dbcp itself, but here is what I get > in my application log, > > SQLException ORA-01555: snapshot too old: rollback segment > number 9 with name "_SYSSMU9$" too small This seems to indicate that the rollback segment, which is Oracle lingo for a file in the file system containing data to enable rollback, is too small. You should feed the above lines to your Oracle dba and let him/her turn some knobs on the Oracle configuration to allocate some more disk space for the rollback segment. > TorqueException: ORA-01453: SET TRANSACTION must be first statement of > transaction > > Basically, after any insert failure (it could be any sqlexception) I > get ORA-01453 and that freezes the connection. > > Thanks, > -vivek > > > > On 3/24/06, Sandy McArthur wrote: >> Can you provide any stack traces? >> >> On 3/24/06, vivek sar wrote: >>> Using, >>> torque-3.1.jar, commons-dbcp-1.2.1.jar, commons-collections-3.1.jar >>> >>> I am having this weird problem. In case an "insert" query fails >>> (could be for any reason) in my case it is because of bad blocks on >>> db, the subsequent query (like a "select" statement) gives me, >>> "ORA- 01453 - Set Transaction must be the first statement" >>> >>> error message. Once I get this exception the connection associated >>> with this error gets frozen - it never gets released to the connection >>> pool. I've configured maxActive to be 20 connections, so after 20 of >>> these "ORA-01453" messages my application freezes and all other tasks >>> just keep waiting for the connection indefinitely. >>> >>> I am using "SharedPoolDataSource" dbcp connection pool. >>> >>> I am not using Transaction explicitly in my code. To get connection I use, >>> >>> Torque.getConnection("xxxx"); >>> >>> I am not sure if this is a bug in torque or dbcp. On my code I don't >>> see any problem as I've the finally block where I close the connection >>> before exiting the method. >>> >>> Does anyone has any experience with this ? >> -- >> Sandy McArthur >> >> "He who dares not offend cannot be honest." >> - Thomas Paine >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org