Re: Error when attempting to call Connection.createArrayOf() method

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Error when attempting to call Connection.createArrayOf() method
Дата
Msg-id alpine.BSO.2.00.0912181721330.8940@leary.csoft.net
обсуждение исходный текст
Ответ на Error when attempting to call Connection.createArrayOf() method  (Allan Kamau <kamauallan@gmail.com>)
Список pgsql-jdbc

On Wed, 16 Dec 2009, Allan Kamau wrote:

> I am trying create an array of text to pass to a postgreSQL function
> and I am getting the following error
> "java.lang.AbstractMethodError:
>
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;"

This error is the result of using a JDBC4 method (createArrayOf) on a
non-JDBC4 Connection.  Apparently DBCP doesn't support JDBC4.  See, for
example, this message:

http://www.mail-archive.com/user@commons.apache.org/msg03376.html

The reply's suggestion of unwrapping the DBCP connection to get the
postgresql connection object is likely to work.

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: JDBC docs download page issue