Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E2D2B9F9B9E for ; Mon, 1 Oct 2007 12:42:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 25596-09 for ; Mon, 1 Oct 2007 12:42:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mir3-fs.mir3.com (mail.mir3.com [72.11.241.14]) by postgresql.org (Postfix) with ESMTP id A999D9F9AA0 for ; Mon, 1 Oct 2007 12:42:20 -0300 (ADT) Received: MIR3-FS.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes by MIR3-FS.mir3.com; 01 Oct 2007 08:42:19 -0700 Subject: Re: pg jdbc and dbcp error From: Mark Lewis To: tfinneid@student.matnat.uio.no Cc: pgsql-jdbc@postgresql.org, kato@iki.fi In-Reply-To: <34287.134.32.140.234.1191251022.squirrel@webmail.uio.no> References: <34154.134.32.140.234.1191248430.squirrel@webmail.uio.no> <1191249611.5495.104.camel@archimedes> <34287.134.32.140.234.1191251022.squirrel@webmail.uio.no> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Mon, 01 Oct 2007 08:42:19 -0700 Message-Id: <1191253339.5495.112.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200710/12 X-Sequence-Number: 17584 On Mon, 2007-10-01 at 17:03 +0200, tfinneid@student.matnat.uio.no wrote: > > If you instead cast the connection to a DelegatingConnection (the DBCP > > wrapper class), then you can invoke the .getInnermostDelegate() method > > and get a handle to the underlying PG Connection object. > > Thanks, that cleared up that error, but then I got another error: > NullPointerException > > It claims that the delegate does not exist, so it returns null instead. > Any ideas? What is returning null? You need to be more specific. Could you post a code snippet? Also, this isn't really PG-specific, this is a DBCP issue. I'll help you with it if you want, but after this message let's drop it from the list to avoid cluttering up pg-jdbc. -- Mark