| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Craig Ringer | 2009-12-18 15:19:10 | Re: PATCH: Update LISTEN/NOTIFY documentation, PGConnection JavaDoc |
| Previous Message | Craig Ringer | 2009-12-18 15:03:01 | JDBC docs download page issue |