tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Kazmier, CEM R&D" <philip.kazm...@nice.com>
Subject RE: NullPointerException when using JDBC ResultSet next() method
Date Tue, 09 Apr 2002 14:04:46 GMT
Thanks.  That solved it.

-----Original Message-----
From: Ralph Einfeldt [mailto:ralph.einfeldt@uptime-isc.de]
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:philip.kazmier@nice.com]
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message