Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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:

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

Kris Jurka

In response to

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group