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 8833A3A4838 for ; Thu, 25 Nov 2004 23:12:21 +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 73873-02 for ; Thu, 25 Nov 2004 23:12:17 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 9C8783A480D for ; Thu, 25 Nov 2004 23:12:18 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CXSma-0008Jw-00; Fri, 26 Nov 2004 12:12:12 +1300 Message-ID: <41A667EF.7010406@opencloud.com> Date: Fri, 26 Nov 2004 12:17:03 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041115) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Manuel Sugawara Cc: pgsql-jdbc@postgresql.org Subject: Re: Result set not positioned properly, perhaps you need to References: In-Reply-To: X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/207 X-Sequence-Number: 11629 Manuel Sugawara wrote: > I have a system which have been up for years now and recently when > switched to pg74.215.jdbc3.jar it started to fail saying: > > org.postgresql.util.PSQLException: Result set not positioned properly, perhaps you need to call next(). > at org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1ResultSet.java:823) > at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:200) > at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:480) > at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:155) > .... > > The funny thing is that switching back to pg74.214.jdbc3.jar solves > the problem. Is this a know bug?. Can you show us the application code that causes this? It may be an application bug that was hidden by the old driver's behaviour. Newer drivers tend to be more aggressive about checking resultset positioning, enforcing spec requirements, etc. -O