X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C89AA9DCA32 for ; Mon, 30 Jan 2006 05:39:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43503-07 for ; Mon, 30 Jan 2006 05:40:00 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id DD3049DC98C for ; Mon, 30 Jan 2006 05:39:56 -0400 (AST) Received: from mail.mnc.ch (62-2-77-205.business.cablecom.ch [62.2.77.205]) by svr4.postgresql.org (Postfix) with ESMTP id 4DF005AF841 for ; Mon, 30 Jan 2006 09:39:58 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 8B3ECA82C7; Mon, 30 Jan 2006 10:39:57 +0100 (CET) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 31658-01; Mon, 30 Jan 2006 10:39:57 +0100 (CET) Received: from meuh.mnc.lan (62-2-77-204.business.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id 320ADA82B4; Mon, 30 Jan 2006 10:39:57 +0100 (CET) Received: by meuh.mnc.lan (Postfix, from userid 1000) id A75171835DB; Mon, 30 Jan 2006 10:39:54 +0100 (CET) To: Roger Pack Cc: pgsql-jdbc@postgresql.org Subject: Re: error note References: <966599840601191400p363addcn826b5bebb48c55d1@mail.gmail.com> X-Hashcash: 1:20:060130:roger.byucougar@gmail.com::n15njpBhYfih1iJt:00000000000000000000000000000000000040d4 X-Hashcash: 1:20:060130:pgsql-jdbc@postgresql.org::5a1y184FTmdg6SX1:0000000000000000000000000000000000003w1i From: Guillaume Cottenceau Date: 30 Jan 2006 10:39:54 +0100 In-Reply-To: <966599840601191400p363addcn826b5bebb48c55d1@mail.gmail.com> Message-ID: <877j8i6olx.fsf@meuh.mnc.lan> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.06 required=5 tests=[AWL=0.060] X-Spam-Score: 0.06 X-Spam-Level: X-Archive-Number: 200601/133 X-Sequence-Number: 14584 Roger Pack writes: > Lacking a better place to send this, it turns out that the error message > org.postgresql.util.PSQLException: This ResultSet is closed. > in JSP's may mean that you uses a Statement, return a resultset from that > same statement, then (without finishing with the resultset) you re-use the > statement (which re-sets the resultset) then try to re-use the resultset ( > i.e. be careful with using the same statement over and over). > Just a note for those who run into this. Per Sun documentation. "A ResultSet object is automatically closed when the Statement object that generated it is closed, re-executed, or used to retrieve the next result from a sequence of multiple results." http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html -- Guillaume Cottenceau