From: Guillaume Cottenceau <gc@mnc.ch>
To: Roger Pack <roger.byucougar@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: error note
Date: 30 Jan 2006 10:39:54 +0100
Message-ID: <877j8i6olx.fsf@meuh.mnc.lan> (raw)
In-Reply-To: <966599840601191400p363addcn826b5bebb48c55d1@mail.gmail.com>
References: <966599840601191400p363addcn826b5bebb48c55d1@mail.gmail.com>
Roger Pack <roger.byucougar 'at' gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: gc@mnc.ch, roger.byucougar@gmail.com
Subject: Re: error note
In-Reply-To: <877j8i6olx.fsf@meuh.mnc.lan>
References: <966599840601191400p363addcn826b5bebb48c55d1@mail.gmail.com> <877j8i6olx.fsf@meuh.mnc.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox