Re: pg jdbc and dbcp error - Mailing list pgsql-jdbc

From Mark Lewis
Subject Re: pg jdbc and dbcp error
Date
Msg-id 1191253339.5495.112.camel@archimedes
Whole thread Raw
In response to Re: pg jdbc and dbcp error  (tfinneid@student.matnat.uio.no)
List pgsql-jdbc
On Mon, 2007-10-01 at 17:03 +0200, tfinneid@student.matnat.uio.no wrote:
> > If you instead cast the connection to a DelegatingConnection (the DBCP
> > wrapper class), then you can invoke the .getInnermostDelegate() method
> > and get a handle to the underlying PG Connection object.
>
> Thanks, that cleared up that error, but then I got another error:
> NullPointerException
>
> It claims that the delegate does not exist, so it returns null instead.
> Any ideas?

What is returning null?  You need to be more specific.  Could you post a
code snippet?

Also, this isn't really PG-specific, this is a DBCP issue.  I'll help
you with it if you want, but after this message let's drop it from the
list to avoid cluttering up pg-jdbc.

-- Mark

pgsql-jdbc by date:

Previous
From: tfinneid@student.matnat.uio.no
Date:
Subject: Re: pg jdbc and dbcp error
Next
From: Till Toenges
Date:
Subject: Re: Prepared Statements vs. pgbouncer