Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CD1B32E0043 for ; Thu, 14 Feb 2008 21:52:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 99612-05 for ; Thu, 14 Feb 2008 21:52:22 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 1DFFA2E0032 for ; Thu, 14 Feb 2008 21:52:29 -0400 (AST) Received: from 219-89-39-133.dialup.xtra.co.nz ([219.89.39.133] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JPpkV-0003Ca-GG; Fri, 15 Feb 2008 14:52:23 +1300 Message-ID: <47B4F05D.5040805@opencloud.com> Date: Fri, 15 Feb 2008 14:52:29 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: james@dades.ca CC: pgsql-jdbc@postgresql.org Subject: Re: PSQLException: ResultSet not positioned properly References: <26787.72.35.6.133.1203032179.squirrel@squirrel.dades.ca> In-Reply-To: <26787.72.35.6.133.1203032179.squirrel@squirrel.dades.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/94 X-Sequence-Number: 18301 james@dades.ca wrote: > System.out.println("Error: ticket number not found > in bol: so#="+sonumber+" ticket#="+token+"; > navroutno="+pRs.getString(2)); You probably don't meant to use pRs.getString() here. That's the resultset that you already iterated through completely in the previous loop (and the connection it was generated from is closed, anyway) -O