Re: pg jdbc and dbcp error

Поиск
Список
Период
Сортировка
От Mark Lewis
Тема Re: pg jdbc and dbcp error
Дата
Msg-id 1191253339.5495.112.camel@archimedes
обсуждение исходный текст
Ответ на Re: pg jdbc and dbcp error  (tfinneid@student.matnat.uio.no)
Список 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 по дате отправления:

Предыдущее
От: tfinneid@student.matnat.uio.no
Дата:
Сообщение: Re: pg jdbc and dbcp error
Следующее
От: Till Toenges
Дата:
Сообщение: Re: Prepared Statements vs. pgbouncer