Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D6B302E0057 for ; Fri, 15 Feb 2008 11:04:14 -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 24909-01-7 for ; Fri, 15 Feb 2008 11:03:58 -0400 (AST) Received: from www.dades.ca (www.dades.ca [206.188.108.164]) by postgresql.org (Postfix) with ESMTP id 716892E00A7 for ; Fri, 15 Feb 2008 11:03:58 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by www.dades.ca (Postfix) with ESMTP id 1ED651849C5 for ; Fri, 15 Feb 2008 10:03:40 -0500 (EST) Received: from www.dades.ca ([127.0.0.1]) by localhost (www [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08877-07 for ; Fri, 15 Feb 2008 10:03:39 -0500 (EST) Received: from squirrel.dades.ca (localhost [127.0.0.1]) by www.dades.ca (Postfix) with SMTP id A8AD118792A for ; Fri, 15 Feb 2008 10:03:39 -0500 (EST) Received: from 72.35.6.133 (SquirrelMail authenticated user james) by squirrel.dades.ca with HTTP; Fri, 15 Feb 2008 10:03:39 -0500 (EST) Message-ID: <48801.72.35.6.133.1203087819.squirrel@squirrel.dades.ca> In-Reply-To: <26787.72.35.6.133.1203032179.squirrel@squirrel.dades.ca> References: <26787.72.35.6.133.1203032179.squirrel@squirrel.dades.ca> Date: Fri, 15 Feb 2008 10:03:39 -0500 (EST) Subject: Re: PSQLException: ResultSet not positioned properly From: james@dades.ca To: pgsql-jdbc@postgresql.org Reply-To: james@dades.ca User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.405 tagged_above=0 required=5 tests=AWL=1.404, BAYES_50=0.001 X-Spam-Level: * X-Archive-Number: 200802/95 X-Sequence-Number: 18302 Oliver Jowett wrote: > 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) Thank you, Oliver. That was indeed my problem. James