This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi All, I am getting following exception :- java.sql.SQLException: Exhausted Resultset while retrieving values from resultset. I am trying to retrieve values for multiple users but getting this exception only for one user and for others it is working fine.
Grishma, It looks like you are never getting a match to set the boolean to false and end the loop. When hResultSetQL.next() gets called after it has run out of data, you get the error. It is good to use a while(hResultSetQL.next()) loop. That removes any possibility of running out of result set. Also, note that resultsets are never null after returning from the database. They can be empty, but not null.