Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Adelisa Fischer   on Jun 11 In Java Category.

  
Question Answered By: Kelly Bell   on Jun 11

This code  that your ResultSet rs has at least one row in it. I can see
that error  popping up if there are no rows, and the line
ret=rs.getString(1);
is executed. My suggestion: when you call rs.next (); do it in an if
statement:


if (rs.next ()) {
<your current code>
}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Regarding Exhausted Resultset Exception Or get search suggestion and latest updates.