Re: pg jdbc and dbcp error

From: Mark Lewis <mark(dot)lewis(at)mir3(dot)com>
To: tfinneid(at)student(dot)matnat(dot)uio(dot)no
Cc: pgsql-jdbc(at)postgresql(dot)org, kato(at)iki(dot)fi
Subject: Re: pg jdbc and dbcp error
Date: 2007-10-01 15:42:19
Message-ID: 1191253339.5495.112.camel@archimedes
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 2007-10-01 at 17:03 +0200, tfinneid(at)student(dot)matnat(dot)uio(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Till Toenges 2007-10-01 16:52:50 Re: Prepared Statements vs. pgbouncer
Previous Message tfinneid 2007-10-01 15:03:42 Re: pg jdbc and dbcp error