Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [JDBC] Getting "This ResultSet is closed" exceptions

From: Paul Tomblin <ptomblin(at)gmail.com>
Date: Mon Feb 18 2008 - 13:59:31 EST


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.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
Received on Mon Feb 18 14:01:09 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:44:42 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library