X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F26C68B9F0F for ; Fri, 4 Feb 2005 08:19:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85524-06 for ; Fri, 4 Feb 2005 08:19:52 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 9E1128B9C00 for ; Fri, 4 Feb 2005 08:19:52 +0000 (GMT) Received: (qmail 21457 invoked by uid 1112); 4 Feb 2005 08:19:52 -0000 Date: Fri, 4 Feb 2005 03:19:52 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-1?Q?St=E9phane_RIFF?= Cc: pgsql-jdbc@postgresql.org Subject: Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s) In-Reply-To: <42032CEC.6000205@cerene.fr> Message-ID: References: <41F75206.2030603@cerene.fr> <41FA1D52.4080505@cerene.fr> <41FA31C3.8010502@fastcrypt.com> <41FA39D7.1070008@cerene.fr> <41FE3906.7010008@cerene.fr> <42032CEC.6000205@cerene.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/22 X-Sequence-Number: 12202 On Fri, 4 Feb 2005, [ISO-8859-1] St=E9phane RIFF wrote: > Hello, > I implement like you said in the last post but now i get some errors=20 > like this : >=20 > 2005-02-04 09:03:26,234 : [WARN] SQLoader - java.sql.SQLException:=20 > org.apache.commons.dbcp.DelegatingPreparedStatement is closed. > I attach the two class i you want to see >=20 Your main loop is written: SQLoader sl =3D new SQLoader(); for(int i=3D0;i<100;i++) { sl.saveTrame( ... ); } but the end of the saveTrame method you have: finally { try { m_conn.commit(); m_conn.close(); This closes the connection on the first iteration of the loop. I'd=20 suggest something like adding SQLoader.close() which gets called at the=20 end of the for loop. Kris Jurka