Thanks.  That solved it.

-----Original Message-----
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 12:18 AM
To: Tomcat Users List
Subject: AW: NullPointerException when using JDBC ResultSet next()
method


Your have 2 ResultSets: rs and rset.

You assign to the rset but call rs.next().
So rs is null.


> -----Ursprüngliche Nachricht-----
> Von: Philip Kazmier, CEM R&D [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 8. April 2002 23:55
> An: 'Tomcat Users List'
> Betreff: RE: NullPointerException when using JDBC ResultSet next()
> method
>

> ResultSet rs = null;

> ResultSet rset = stmt.executeQuery ("select sc_id from
bug_status_codes");

> while(rs.next()) 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to