Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 615186326BF for ; Fri, 18 Dec 2009 11:10:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 92799-03 for ; Fri, 18 Dec 2009 15:10:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f176.google.com (mail-iw0-f176.google.com [209.85.223.176]) by mail.postgresql.org (Postfix) with ESMTP id 65074632657 for ; Fri, 18 Dec 2009 11:10:30 -0400 (AST) Received: by iwn6 with SMTP id 6so2167834iwn.15 for ; Fri, 18 Dec 2009 07:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=W86+nyxGWdKZw+rzYcHMgywbQg4ednT2JuQ5y//NGqk=; b=xsBd/zSyfC5uV+XxwfMANxxjs6x7ir+jLbBp33thaiQCwH9aKZA2cZgoiTJAoeaZSj 0q+jV81ousyankANRT0SpUThCNNI41ZQlTHioSiEpQ2hn2a2FF9Dbz7xlIq3HFoojRzS 86RhYYhwMCaNHPu/xSaK+v3/5wZLZKZxVnOsk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=Z/QQTDlrY6ffzs6kuNkF79fEypdZZEgO8z+vCgCj1nn7Pp749MCe5kZeEB28NG7lsy aar+80JUIHbAVLSfE+fc1adc3HZwUqeoAs8XuFkZEI8qvNTY7YRLEDEH0O0cZoKKgVx4 L/nrDAYaiU1TcW9xCY5twrAy5yqjS6pnI5uk4= MIME-Version: 1.0 Received: by 10.231.125.28 with SMTP id w28mr1366484ibr.50.1261149028438; Fri, 18 Dec 2009 07:10:28 -0800 (PST) In-Reply-To: References: Date: Fri, 18 Dec 2009 10:10:28 -0500 X-Google-Sender-Auth: 10f6a325896bb28b Message-ID: <491f66a50912180710w3ffaeedew92cfb2502cf1bacb@mail.gmail.com> Subject: Re: Error when attempting to call Connection.createArrayOf() method From: Dave Cramer To: Allan Kamau Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/58 X-Sequence-Number: 20139 On Wed, Dec 16, 2009 at 8:38 AM, Allan Kamau 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