aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SQLException...." Watch "SQLException...." New topic
Author

SQLException....

Anonymous
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
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Usually this means that you are not checking the returned result of the ResultSet.next() 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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Rajeev Ranjan
Greenhorn

Joined: Sep 22, 2000
Posts: 2
suppose you make a object of resultset
ResulSet rs
and you use the code
rs.next() to retrieve data from the database
if rs.next() returns false then it will throw an exception Resultset has no more data.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLException....