Re: error note

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: Roger Pack <roger(dot)byucougar(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: error note
Date: 2006-01-30 09:39:54
Message-ID: 877j8i6olx.fsf@meuh.mnc.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • error note at 2006-01-19 22:00:15 from Roger Pack

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guillaume Cottenceau 2006-01-30 09:51:43 Re: Postgres-JDBC question
Previous Message Kris Jurka 2006-01-30 03:57:12 Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with