Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 72E2B9FA06A for ; Mon, 1 Oct 2007 12:03:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 53250-04 for ; Mon, 1 Oct 2007 12:03:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from pat.uio.no (pat.uio.no [129.240.10.15]) by postgresql.org (Postfix) with ESMTP id 637DF9FA05A for ; Mon, 1 Oct 2007 12:03:44 -0300 (ADT) Received: from mail-mx8.uio.no ([129.240.10.38]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1IcMoB-00029r-KG; Mon, 01 Oct 2007 17:03:43 +0200 Received: from smtp.uio.no ([129.240.10.9] helo=mail-mx8.uio.no) by mail-mx8.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1IcMoA-00023c-VY; Mon, 01 Oct 2007 17:03:43 +0200 Received: from mail-web3.uio.no ([129.240.10.20] helo=webmail.uio.no) by mail-mx8.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1IcMoA-00022X-MG; Mon, 01 Oct 2007 17:03:42 +0200 Received: from 134.32.140.234 (SquirrelMail authenticated user tfinneid) by webmail.uio.no with HTTP; Mon, 1 Oct 2007 17:03:42 +0200 (CEST) Message-ID: <34287.134.32.140.234.1191251022.squirrel@webmail.uio.no> In-Reply-To: <1191249611.5495.104.camel@archimedes> References: <34154.134.32.140.234.1191248430.squirrel@webmail.uio.no> <1191249611.5495.104.camel@archimedes> Date: Mon, 1 Oct 2007 17:03:42 +0200 (CEST) Subject: Re: pg jdbc and dbcp error From: tfinneid@student.matnat.uio.no To: "Mark Lewis" Cc: tfinneid@student.matnat.uio.no, pgsql-jdbc@postgresql.org, kato@iki.fi User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-UiO-Resend: resent X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=-4.2, required=12.0, autolearn=disabled, AWL=0.754, UIO_MAIL_IS_INTERNAL=-5) X-UiO-Scanned: DA9E76D4ABE8705E9490E11B7CD9E927F6AE6FBC X-UiO-SPAM-Test: remote_host: 129.240.10.9 spam_score: -41 maxlevel 200 minaction 1 bait 0 mail/h: 77 total 4218378 max/h 8345 blacklist 0 greylist 0 ratelimit 0 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/11 X-Sequence-Number: 17583 > 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? (BTW, if anybody knows of a good tutorial on DBCP, i would appreciate it enormously. The documentation on the web page of DBCP just confuses me.) regards thomas