RE: NullPointerException when using JDBC ResultSet next() method

2002-04-09 Thread
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

RE: NullPointerException when using JDBC ResultSet next() method

2002-04-09 Thread
Thank you Giorgio! That was it! Boy do I feel stupid. Thanks again. -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:15 AM To: Tomcat Users List Subject: Re: NullPointerException when using JDBC ResultSet next() method sorry, but you

Re: NullPointerException when using JDBC ResultSet next() method

2002-04-09 Thread Giorgio Ponza
sorry, but you called ResultSet rset = stmt.executeQuery ("select sc_id from bug_status_codes"); and then used rs.next() maybe they must be all rs or all rset. Bye Giorgio -- To unsubscribe: For additional commands: Troubles with the list

RE: NullPointerException when using JDBC ResultSet next() method

2002-04-09 Thread John Burgess
0:55 PM To: 'Tomcat Users List' Subject: RE: NullPointerException when using JDBC ResultSet next() method I apologize but I posted the wrong code. Here is the correct code. Line 45 is rs.next. I am not sure that the driver has loaded properly. How can I tell? Thanks. import jav

RE: NullPointerException when using JDBC ResultSet next() method

2002-04-09 Thread Jon Wingfield
files. Makes changing database easy ;) Hope this helps, Jon -Original Message- From: Philip Kazmier, CEM R&D [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 22:55 To: 'Tomcat Users List' Subject: RE: NullPointerException when using JDBC ResultSet next() method I apologize but

RE: NullPointerException when using JDBC ResultSet next() method

2002-04-08 Thread
"Couldn't load the database driver-> " + e.getMessage()); } catch(SQLException e) { out.println("SQLException caught: " + e.getMessage()); } finally {

Re: NullPointerException when using JDBC ResultSet next() method

2002-04-08 Thread August Detlefsen
The stack trace says that your NullPointer occurs on line 45, but line 45 is blank. Is there some more code that you didn't ost? Import statements, perhaps? I think it probably happened here: stmt = con.createStatement(); -IE: You were not able to get a Connection, con is null and calling its

Re: NullPointerException when using JDBC ResultSet next() method

2002-04-08 Thread jeff . guttadauro
You sure that your "test" table has a "test" column? Change rs.getString ("test") to rs.getString(1) to see if that works... HTH "Philip