From: Kris Jurka <books@ejurka.com>
To: Allan Kamau <kamauallan@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error when attempting to call Connection.createArrayOf() method
Date: Fri, 18 Dec 2009 17:27:26 -0500 (EST)
Message-ID: <alpine.BSO.2.00.0912181721330.8940@leary.csoft.net> (raw)
In-Reply-To: <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>
References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com>
<ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, kamauallan@gmail.com
Subject: Re: Error when attempting to call Connection.createArrayOf() method
In-Reply-To: <alpine.BSO.2.00.0912181721330.8940@leary.csoft.net>
References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com> <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com> <alpine.BSO.2.00.0912181721330.8940@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox