X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BF4BB9FB247 for ; Mon, 14 Aug 2006 10:06:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 38572-10 for ; Mon, 14 Aug 2006 10:05:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by postgresql.org (Postfix) with ESMTP id EDB249FA2AD for ; Mon, 14 Aug 2006 10:05:59 -0300 (ADT) Received: from [127.0.0.1] ([66.130.106.234]) by VL-MO-MR003.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J3Z00627ODX7Z30@VL-MO-MR003.ip.videotron.ca> for pgsql-jdbc@postgresql.org; Mon, 14 Aug 2006 09:05:58 -0400 (EDT) Date: Mon, 14 Aug 2006 09:09:45 -0400 From: David Gagnon Subject: upgrading from pg74.216.jdbc3.jar to 8.1-407 JDBC 3 Shoud I? To: pgsql-jdbc@postgresql.org Message-id: <44E07619.9090204@siunik.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/75 X-Sequence-Number: 15602 Hi all, I'm running 8.4 and to make a short story I'm doing some test with my Tomcat/postgresql application. I shutdown the service and restart it and notice that sometime just get ConnectionResetByPeerException (If I remember well). So I tried the latest JDBC driver to see if I will get this problem and run into this, I suppose really common problem: BUG [main] (MappedStatement.java:908) 2006-08-14 07:46:43,062 : Error executing 'role.getList' in '[Reader passed to buildSqlMap()]'. Check the SQL statement. Cause: org.postgresql.util.PSQLException: L'opération nécessite un scrollable ResultSet, mais ce ResultSet est FORWARD_ONLY. org.postgresql.util.PSQLException: L'opération nécessite un scrollable ResultSet, mais ce ResultSet est FORWARD_ONLY. Is there a way to default the JDBC driver so it behave like pg74.216 ? The code come from a library so I cannot modify it? Is there a work around? On the other side is it worth upgrading to 8.1 driver. Can he solve my reliability problem. (stability, reliability, etc.).. should I upgrade? Thanks for your help ! Best Regards /David