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

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

From: Dave Cramer <pg(at)fastcrypt(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 15:10:28
Message-ID: 491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
On Wed, Dec 16, 2009 at 8:38 AM, Allan Kamau <kamauallan(at)gmail(dot)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

In response to

pgsql-jdbc by date

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

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