From: Paul Tomblin <ptomblin@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Getting "This ResultSet is closed" exceptions
Date: Mon, 18 Feb 2008 13:59:31 -0500
Message-ID: <8efd35820802181059x45bf1f0el712930cffa58ed6@mail.gmail.com> (raw)
In-Reply-To: <3fccaa690802181051r377afa2an33fb9e1a3a7b65ca@mail.gmail.com>
References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com>
<3fccaa690802181051r377afa2an33fb9e1a3a7b65ca@mail.gmail.com>
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.
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: ptomblin@gmail.com
Subject: Re: Getting "This ResultSet is closed" exceptions
In-Reply-To: <8efd35820802181059x45bf1f0el712930cffa58ed6@mail.gmail.com>
References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com> <3fccaa690802181051r377afa2an33fb9e1a3a7b65ca@mail.gmail.com> <8efd35820802181059x45bf1f0el712930cffa58ed6@mail.gmail.com>
* 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