This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes SQLException.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "SQLException...." Watch "SQLException...." New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
what may cause to throw SQLException which says ResultSet has no more data? Could any one please let me know.
Thanks in advance,
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Usually this means that you are not checking the returned result of the method. It returns true if there are more elements in the ResultSet, or false if there are none. Most people use code something like:

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Rajeev Ranjan

Joined: Sep 22, 2000
Posts: 2
suppose you make a object of resultset
ResulSet rs
and you use the code to retrieve data from the database
if returns false then it will throw an exception Resultset has no more data.
I agree. Here's the link:
subject: SQLException....
jQuery in Action, 3rd edition