From: | Robin Rosenberg <robin(dot)rosenberg(dot)lists(at)dewire(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | NoClassDefFoundErrors |
Date: | 2009-03-18 08:01:41 |
Message-ID: | 200903180901.41694.robin.rosenberg.lists@dewire.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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.<init>(AbstractJdbc2Statement.java:134)
at org.postgresql.jdbc3.AbstractJdbc3Statement.<init>(AbstractJdbc3Statement.java:41)
at org.postgresql.jdbc4.AbstractJdbc4Statement.<init>(AbstractJdbc4Statement.java:30)
at org.postgresql.jdbc4.Jdbc4Statement.<init>(Jdbc4Statement.java:30)
at org.postgresql.jdbc4.Jdbc4PreparedStatement.<init>(Jdbc4PreparedStatement.java:23)
at org.postgresql.jdbc4.Jdbc4PreparedStatement.<init>(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
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Jowett | 2009-03-18 08:45:56 | Re: NoClassDefFoundErrors |
Previous Message | Guy Rouillier | 2009-03-17 17:05:12 | Re: Totally weird behaviour in org.postgresql.Driver |