Re: Error when attempting to call Connection.createArrayOf() method - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Error when attempting to call Connection.createArrayOf() method
Date
Msg-id alpine.BSO.2.00.0912181721330.8940@leary.csoft.net
Whole thread Raw
In response to Error when attempting to call Connection.createArrayOf() method  (Allan Kamau <kamauallan@gmail.com>)
List 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 by date:

Previous
From: Craig Ringer
Date:
Subject: Re: PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc
Next
From: Kris Jurka
Date:
Subject: Re: JDBC docs download page issue