Re: Getting "This ResultSet is closed" exceptions

From: Paul Tomblin <ptomblin(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Getting "This ResultSet is closed" exceptions
Date: 2008-02-19 01:23:45
Message-ID: 47BA2FA1.2040703@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Jan de Visser wrote:
> On Monday 18 February 2008 18:07:59 Paul Tomblin wrote:
>> I've turned off autocommit, and am
>> running around the code trying to figure out where is the best place
>> to put "conn.commit();" calls.
>
> Come again? You are using a single connection and are calling commit and
> seemingly random spots? That means that thread A will call commit while
> thread B is in the middle of doing things.

Like I said, it's been running in autocommit mode for about 6 years now. Any
problems that might have occurred from an inconsistent database have been seen
and rectified long ago.

--
Paul Tomblin <ptomblin(at)xcski(dot)com> http://blog.xcski.com/
Sept 25th: Discovered lots of things about Dynamic HTML.
Notably that almost every site attempting to use it is crap.
-- Alan Cox's diary

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2008-02-19 03:03:38 Re: Implementing setQueryTimeout()
Previous Message Tom Lane 2008-02-19 01:20:54 Re: Implementing setQueryTimeout()