Paul Sturrock wrote:As Jeanne has already said, the ResultSet should not be null. Which Driver are you using?
Also, why are you closing your results set in the same loop you use to iterate through it?
Avyaya Avi wrote:You NEED to call rs.next() in order to enter the result set values anyway.
to the top and execute.
Jeanne Boyarsky wrote:Angus,
Welcome to JavaRanch!
When you say the result set is null, do you mean empty? A result set should never be null.