Error when attempting to call Connection.createArrayOf() method

From: Allan Kamau <kamauallan(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Error when attempting to call Connection.createArrayOf() method
Date: 2009-12-16 13:38:08
Message-ID: ab1ea6540912160538m663c722bg3f928ad15c90dd0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guillaume Cottenceau 2009-12-16 14:00:15 Re: Error when attempting to call Connection.createArrayOf() method
Previous Message Allan Kamau 2009-12-16 09:54:07 Error when attempting to call Connection.createArrayOf() method