Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0AD13634603 for ; Tue, 7 Apr 2009 11:13:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 17369-06-2 for ; Tue, 7 Apr 2009 11:13:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id EC85F63434A for ; Tue, 7 Apr 2009 11:13:49 -0300 (ADT) Received: from 219-89-243-186.adsl.xtra.co.nz ([219.89.243.186] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LrC3Y-0005F2-K3; Wed, 08 Apr 2009 02:13:40 +1200 Message-ID: <49DB5F92.1060603@opencloud.com> Date: Wed, 08 Apr 2009 02:13:38 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Hannu Krosing CC: Dave Cramer , pgsql-jdbc@postgresql.org Subject: Re: What do people use for connection pooling with PostgreSQL JDBC References: <1236241901.12460.6.camel@huvostro> <491f66a50903050513r46ab0531h4892e973dec51f18@mail.gmail.com> <1239016398.8411.2.camel@huvostro> <491f66a50904060443o7e80fae8mfb6f403fb9a53467@mail.gmail.com> <1239093322.7647.9.camel@huvostro> <491f66a50904070324g19aee516vb5b1922b23450a27@mail.gmail.com> <1239110612.7647.15.camel@huvostro> <49DB5448.3050204@opencloud.com> <1239111655.7647.17.camel@huvostro> In-Reply-To: <1239111655.7647.17.camel@huvostro> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/16 X-Sequence-Number: 19463 Hannu Krosing wrote: > On Wed, 2009-04-08 at 01:25 +1200, Oliver Jowett wrote: >> Hannu Krosing wrote: >> >>> I understand that dbcp and c3po work on some other databases jdbc >>> drivers, so maybe I could also do >>> >>> 4) fix jdbc code to provide required createArrayOf support >>> >>> no ? >> You could start by showing us the actual exception that you get? > > for dbcp - > > java.lang.AbstractMethodError: > org.apache.tomcat.dbcp.dbcp.PoolingDataSource > $PoolGuardConnectionWrapper.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array; > > > for c3p0 - > > java.lang.AbstractMethodError: > com.mchange.v2.c3p0.impl.NewProxyConnection.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array; That means that neither dbcp nor c3po's connection wrapper classes implement createArrayOf() (i.e. they were compiled against an earlier JDBC specification that lacks those methods, but your runtime environment is more recent and you are trying to use those methods from your app). It is a problem with the connection pool wrapper code, not the PostgreSQL JDBC driver. Perhaps you need to explicitly build DBCP/C3PO against a newer JDBC release? Or perhaps they just don't support those methods yet. -O