db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jørgen Løland <Jorgen.Lol...@Sun.COM>
Subject Re: Re-using an existing db and archiving data
Date Wed, 19 Mar 2008 10:35:58 GMT
Mark Hiles wrote:
> Sorry I forgot to mention that!
> 
> rs = stmt.executeQuery("...");
> 
> while(rs.next()) {                            // LINE 308
>     arrLstS.add(rs.getString("..."));
>     arrLstS.add(getRoomName(rs.getInt("...")));
>     arrLstB.add(arrLstS);            
> }
> 
> 

I really doubt that rs.next() throws a NPE - my guess is that rs was 
never set. You can test this by adding

System.out.println("Value of rs: "+rs);

on the line above the while loop. It will probably print
Value of rs: null

Is it possible to attach the java program? That would make it easier to 
help.

-- 
Jørgen Løland

Mime
View raw message