Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CCAD9632631 for ; Fri, 18 Dec 2009 18:27:39 -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 97227-05 for ; Fri, 18 Dec 2009 22:27:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id BC5B36327EE for ; Fri, 18 Dec 2009 18:27:28 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id 202B7A3A1; Fri, 18 Dec 2009 17:27:27 -0500 (EST) Date: Fri, 18 Dec 2009 17:27:26 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Allan Kamau cc: pgsql-jdbc@postgresql.org Subject: Re: Error when attempting to call Connection.createArrayOf() method In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.567 tagged_above=-10 required=5 tests=AWL=0.032, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/60 X-Sequence-Number: 20141 On Wed, 16 Dec 2009, 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;" This error is the result of using a JDBC4 method (createArrayOf) on a non-JDBC4 Connection. Apparently DBCP doesn't support JDBC4. See, for example, this message: http://www.mail-archive.com/user@commons.apache.org/msg03376.html The reply's suggestion of unwrapping the DBCP connection to get the postgresql connection object is likely to work. Kris Jurka