Two Laptop Bag*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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....
Similar Threads
sql statement executes in Toad, not in app
Prepared statements ?
Exceptions in Overriding methods??
Can anyone help me with this error
how to read different data from one table and compare it