Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 6789963449D for ; Wed, 18 Mar 2009 05:47:49 -0300 (ADT) 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 88809-03-5 for ; Wed, 18 Mar 2009 05:47:41 -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 215E26322E4 for ; Wed, 18 Mar 2009 05:46:04 -0300 (ADT) Received: from 219-89-102-160.jetstart.xtra.co.nz ([219.89.102.160] 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 1LjrPR-00088e-8K; Wed, 18 Mar 2009 21:45:57 +1300 Message-ID: <49C0B4C4.1070708@opencloud.com> Date: Wed, 18 Mar 2009 21:45:56 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Robin Rosenberg CC: pgsql-jdbc@postgresql.org Subject: Re: NoClassDefFoundErrors References: <200903180901.41694.robin.rosenberg.lists@dewire.com> In-Reply-To: <200903180901.41694.robin.rosenberg.lists@dewire.com> 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: 200903/92 X-Sequence-Number: 19422 Robin Rosenberg wrote: > Under various error conditions (and possibly otherwise) we get noclassdeffound errors instead of an SQL exception. > > Caused by: java.lang.NoClassDefFoundError: org/postgresql/core/Parser > at org.postgresql.core.v3.QueryExecutorImpl.parseQuery(QueryExecutorImpl.java:77) > at org.postgresql.core.v3.QueryExecutorImpl.createParameterizedQuery(QueryExecutorImpl.java:55) > We're currently on version 8.3-603 of the driver within glassfish 2.1 $ jar tvf postgresql-8.3-603.jdbc2.jar | grep Parser.class 2904 Thu Jan 31 03:01:38 NZDT 2008 org/postgresql/core/Parser.class The class is there, so either you have a mangled copy of the driver jar, or glassfish is breaking something, or you have encountered a JVM bug. Parser is an integral part of the driver, used whenever you have a query that contains any of these characters: '"-/$ -O