Re: Getting "This ResultSet is closed" exceptions - Mailing list pgsql-jdbc

From Paul Tomblin
Subject Re: Getting "This ResultSet is closed" exceptions
Date
Msg-id 8efd35820802181059x45bf1f0el712930cffa58ed6@mail.gmail.com
Whole thread Raw
In response to Re: Getting "This ResultSet is closed" exceptions  ("Andres Olarte" <olarte.andres@gmail.com>)
Responses Re: Getting "This ResultSet is closed" exceptions  ("Andres Olarte" <olarte.andres@gmail.com>)
List pgsql-jdbc
On Feb 18, 2008 1:51 PM, Andres Olarte <olarte.andres@gmail.com> wrote:
> Another thread my close the result set if it's using the same
> statement. Or the thread may close the connection, but i think that
> would throw another exception.  Other wise your code look right

Well, no other method is using the same PreparedStatement.  So I guess
it's likely that another thread is doing the same query, and that's
what's closing the ResultSet.  I guess it's time to make some of these
methods synchronized.

--
For my assured failures and derelictions I ask pardon beforehand of my
betters and my equals in my Calling here assembled, praying that in
the hour of my temptations, weakness and weariness, the memory of this
my Obligation and of the company before whom it was entered into, may
return to me to aid, comfort and restrain.

pgsql-jdbc by date:

Previous
From: "Andres Olarte"
Date:
Subject: Re: Getting "This ResultSet is closed" exceptions
Next
From: "Andres Olarte"
Date:
Subject: Re: Getting "This ResultSet is closed" exceptions