Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7210F630861 for ; Wed, 18 Mar 2009 05:23:18 -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 82207-05-2 for ; Wed, 18 Mar 2009 05:22:43 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 607486346DB for ; Wed, 18 Mar 2009 05:22:13 -0300 (ADT) X-Greylist: delayed 00:19:51.239197 by SQLgrey-1.7.6 Received: from dewire.com (mail.dewire.com [83.140.172.130]) by mx3.hub.org (Postfix) with ESMTP id 5AF6937B53A for ; Wed, 18 Mar 2009 05:22:12 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by dewire.com (Postfix) with ESMTP id 3A06B1391370 for ; Wed, 18 Mar 2009 09:01:43 +0100 (CET) X-Virus-Scanned: by amavisd-new at dewire.com Received: from dewire.com ([127.0.0.1]) by localhost (torino.dewire.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id udMLz4zZrrYG for ; Wed, 18 Mar 2009 09:01:42 +0100 (CET) Received: from sleipner.localnet (unknown [10.9.0.4]) by dewire.com (Postfix) with ESMTP id 7FE39139136D for ; Wed, 18 Mar 2009 09:01:42 +0100 (CET) From: Robin Rosenberg To: pgsql-jdbc@postgresql.org Subject: NoClassDefFoundErrors Date: Wed, 18 Mar 2009 09:01:41 +0100 User-Agent: KMail/1.11.1 (Linux/2.6.27-12-generic; KDE/4.2.1; i686; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903180901.41694.robin.rosenberg.lists@dewire.com> 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/91 X-Sequence-Number: 19421 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) 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) at org.postgresql.jdbc2.AbstractJdbc2Statement.(AbstractJdbc2Statement.java:134) at org.postgresql.jdbc3.AbstractJdbc3Statement.(AbstractJdbc3Statement.java:41) at org.postgresql.jdbc4.AbstractJdbc4Statement.(AbstractJdbc4Statement.java:30) at org.postgresql.jdbc4.Jdbc4Statement.(Jdbc4Statement.java:30) at org.postgresql.jdbc4.Jdbc4PreparedStatement.(Jdbc4PreparedStatement.java:23) at org.postgresql.jdbc4.Jdbc4PreparedStatement.(Jdbc4PreparedStatement.java:18) at org.postgresql.jdbc4.Jdbc4Connection.prepareStatement(Jdbc4Connection.java:37) at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:266) at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:187) These are just a few examples. NoClassDefFoundError seems to occur in many situations and so far it has always been related to an underlying exception of some kind. These particular cases I'm not sure about, and cannot verify, but I suspect a bad parameter or even an SQL syntax error. So, my question is: How do I get error handling to work? All errors don't lead to NoClassDefFoundError. We're currently on version 8.3-603 of the driver within glassfish 2.1 -- robin