From: Allan Kamau <kamauallan@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Error when attempting to call Connection.createArrayOf() method
Date: Wed, 16 Dec 2009 16:38:08 +0300
Message-ID: <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com> (raw)
In-Reply-To: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com>
References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com>
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;"
I am using JDBC driver (postgresql-8.4-701.jdbc4.jar) for postgreSQL
and commons-dbcp-1.2.2.jar for connection pooling.
My code like like this.
String[] _input_values={"one","two"};
conn.createArrayOf("text",_input_values)
Allan.
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: kamauallan@gmail.com
Subject: Re: Error when attempting to call Connection.createArrayOf() method
In-Reply-To: <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>
References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com> <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>
* 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