Re: error note
От | Guillaume Cottenceau |
---|---|
Тема | Re: error note |
Дата | |
Msg-id | 877j8i6olx.fsf@meuh.mnc.lan обсуждение исходный текст |
Ответ на | error note (Roger Pack <roger.byucougar@gmail.com>) |
Список | 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
В списке pgsql-jdbc по дате отправления: