JDBC2 driver failure

From: Haig Ehramdjian <haige(at)cae(dot)com>
To: "Mailing List: PGSQL (E-mail)" <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC2 driver failure
Date: 2003-03-25 20:28:00
Message-ID: 69F1436AA435D7118EE1009027B0FF3A01216234@caemsx02.cae.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

I have some code that does the following:

ResultSet rs = stmt.executeQuery("myQuery");

while (rs.next()) {
//some processing
String query = "blahblah";
ResultSet rs2 = stmt.executeQuery(query);
}

All the processing up to rs2 works fine, but the instant I try to get the
result set,
I get the following errors in my catalina.out log file on Tomcat4:

java.lang.NullPointerException
at org.postgresql.jdbc2.ResultSet.next(ResultSet.java:113)
at
org.apache.commons.dbcp.DelegatingResultSet.next(DelegatingResultSet.java)

Any ideas? This is part of an in-house app I'm building and seems to be the
last stumbling block.

Thanks a lot,
Haig Ehramdjian

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Hooker 2003-03-25 20:41:04 Re: Problem with updateRow() -- Revisited
Previous Message Dave Cramer 2003-03-25 20:09:14 Re: Problem with updateRow() -- Revisited