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

From: Kris Jurka <books(at)ejurka(dot)com>
To: Allan Kamau <kamauallan(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Error when attempting to call Connection.createArrayOf() method
Date: 2009-12-18 22:27:26
Message-ID: alpine.BSO.2.00.0912181721330.8940@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)commons(dot)apache(dot)org/msg03376.html

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

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2009-12-18 22:32:15 Re: JDBC docs download page issue
Previous Message Craig Ringer 2009-12-18 15:19:10 Re: PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc