pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.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 10:10:28 -0500
Message-ID: <491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com> (raw)
In-Reply-To: <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>
References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com>
	<ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com>

On Wed, Dec 16, 2009 at 8:38 AM, Allan Kamau <kamauallan@gmail.com> 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;"
>
>
> 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)
>
>
AFAIR, Kris implemented this,does this work if you do not use dbpc ?

Dave



view thread (6+ messages)  latest in thread

Message-ID: <491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com>
Permalink:  ../491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com/
Also on:    postgresql.org/message-id/491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com

 · 

reply

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: pg@fastcrypt.com, kamauallan@gmail.com
  Subject: Re: Error when attempting to call Connection.createArrayOf() method
  In-Reply-To: <491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com>
  References: <ab1ea6540912160147p6414cf28i789750635fa266b0@mail.gmail.com> <ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com> <491f66a50912180710w3ffaeedew92cfb2502cf1bacb@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