pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feederror note
2+ messages / 2 participants
[nested] [flat]
* error note
@ 2006-01-19 22:00 Roger Pack <roger.byucougar@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Roger Pack @ 2006-01-19 22:00 UTC (permalink / raw)
To: pgsql-jdbc
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.
Thanks.
-Roger
--
Love is the only force that can erase the differences between people, that
can heal relationships shattered by bitterness.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: error note
@ 2006-01-30 09:39 Guillaume Cottenceau <gc@mnc.ch>
parent: Roger Pack <roger.byucougar@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Cottenceau @ 2006-01-30 09:39 UTC (permalink / raw)
To: Roger Pack <roger.byucougar@gmail.com>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-01-30 09:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 22:00 error note Roger Pack <roger.byucougar@gmail.com>
2006-01-30 09:39 ` Guillaume Cottenceau <gc@mnc.ch>
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