pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblems after upgrading from 7.4.6 driver to 8.0.2 driver
2+ messages / 1 participants
[nested] [flat]
* Problems after upgrading from 7.4.6 driver to 8.0.2 driver
@ 2005-04-25 23:38 Mark Lewis <mark.lewis@mir3.com>
0 siblings, 1 reply; 2+ messages in thread
From: Mark Lewis @ 2005-04-25 23:38 UTC (permalink / raw)
To: pgsql-jdbc
After upgrading from pg74.215.jdbc3.jar to postgresql-8.0-310.jdbc3.jar,
I've encountered problems getting a "This statement has been closed"
exception when using a PreparedStatement.
The application is using Jakarta's DBCP 1 connection pooling with
prepared statement caching, and is configured to execute "select 1" each
time a connection is checked out from the pool to ensure that the
connection is still alive, so I'm pretty sure the server connection is
still good.
Are there any known gotchas migrating to the new server prepared
statement implementation? Something that could be causing statements to
close when they otherwise would not be?
Thanks,
Mark Lewis
Thanks,
Mark Lewis
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problems after upgrading from 7.4.6 driver to 8.0.2
@ 2005-04-26 00:00 Mark Lewis <mark.lewis@mir3.com>
parent: Mark Lewis <mark.lewis@mir3.com>
0 siblings, 0 replies; 2+ messages in thread
From: Mark Lewis @ 2005-04-26 00:00 UTC (permalink / raw)
To: pgsql-jdbc
Sorry for the noise, just after posting I finally tracked it down to a
problem in the application. In one code path a prepared statement was
being double-closed, which apparently triggers a bug in the version of
DBCP being used.
I'm still not sure why it only started misbehaving after upgrading the
JDBC driver.
-- Mark
On Mon, 2005-04-25 at 16:38, Mark Lewis wrote:
> After upgrading from pg74.215.jdbc3.jar to postgresql-8.0-310.jdbc3.jar,
> I've encountered problems getting a "This statement has been closed"
> exception when using a PreparedStatement.
>
> The application is using Jakarta's DBCP 1 connection pooling with
> prepared statement caching, and is configured to execute "select 1" each
> time a connection is checked out from the pool to ensure that the
> connection is still alive, so I'm pretty sure the server connection is
> still good.
>
> Are there any known gotchas migrating to the new server prepared
> statement implementation? Something that could be causing statements to
> close when they otherwise would not be?
>
> Thanks,
> Mark Lewis
>
> Thanks,
> Mark Lewis
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-04-26 00:00 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25 23:38 Problems after upgrading from 7.4.6 driver to 8.0.2 driver Mark Lewis <mark.lewis@mir3.com>
2005-04-26 00:00 ` Re: Problems after upgrading from 7.4.6 driver to 8.0.2 Mark Lewis <mark.lewis@mir3.com>
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