dbTalk Databases Forums  

java.sql.SQLException: Exhausted Resultset

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss java.sql.SQLException: Exhausted Resultset in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alessandro Lagostena
 
Posts: n/a

Default java.sql.SQLException: Exhausted Resultset - 05-25-2005 , 01:47 PM






Hello Gents

I have a application that work from 3 years and now on a prticular
action show this error :

java.sql.SQLException: Exhausted Resultset

The application scan a table with ~8000000 rows

Can this error depend from a bad status of the table ?

I check on the alert log of oracle and not found any message

Do someone have an idea ?

Thanks for the support

Regards LAGO

Reply With Quote
  #2  
Old   
Sybrand Bakker
 
Posts: n/a

Default Re: java.sql.SQLException: Exhausted Resultset - 05-25-2005 , 02:07 PM






On Wed, 25 May 2005 18:47:46 GMT, Alessandro Lagostena
<alessandro.lagostena (AT) tin (DOT) it> wrote:

Quote:
Can this error depend from a bad status of the table ?
No, in that case an ORA- error message would have been thrown

Quote:
I check on the alert log of oracle and not found any message
Of course not, because nothing is wrong with the database. The problem
is with 'scanning' 8 million records
Quote:
Do someone have an idea ?
Yes. Why is it that Java programmers live in the misconception they
never ever make a mistake, that Java isn't memory hungry, and their
programs never run out of memory?
Why is it they invariably blame the database for their mistakes?
Because they don't know anything about the database and treat it as a
flat file system?
Nagging questions with obvious answers.


--
Sybrand Bakker, Senior Oracle DBA


Reply With Quote
  #3  
Old   
Rauf Sarwar
 
Posts: n/a

Default Re: java.sql.SQLException: Exhausted Resultset - 05-26-2005 , 04:31 AM





Sybrand Bakker wrote:
Quote:
On Wed, 25 May 2005 18:47:46 GMT, Alessandro Lagostena
alessandro.lagostena (AT) tin (DOT) it> wrote:

Can this error depend from a bad status of the table ?

No, in that case an ORA- error message would have been thrown


I check on the alert log of oracle and not found any message

Of course not, because nothing is wrong with the database. The problem
is with 'scanning' 8 million records
I agree. There is nothing wrong with the database and scanning 8
million records maybe bad design... but the "Exhausted Resultset" error
message in this instance is most likely not attributed to just scanning
n number of records.

Quote:
Do someone have an idea ?

Yes. Why is it that Java programmers live in the misconception they
never ever make a mistake, that Java isn't memory hungry, and their
programs never run out of memory?
Why is it they invariably blame the database for their mistakes?
Because they don't know anything about the database and treat it as a
flat file system?
Nagging questions with obvious answers.

This particular error message is thrown if you try to fetch from a
resultset that did not return any rows. OP did not post the culprit
code... so just going by the "Exhausted Resultset" error message, I
don't think there are any memory issues here. Just bad programming
perhaps... and the reason for that is that a resultset may or may not
return any rows, a good programmer *will* check the resultset by using
next() method *prior* to fetching from it e.g.

ResultSet rset = ....;
while (rset.next()) {
// You ONLY get here if there are any rows
}

Regards
/Rauf



Reply With Quote
  #4  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: java.sql.SQLException: Exhausted Resultset - 05-26-2005 , 11:52 AM



Alessandro Lagostena (alessandro.lagostena (AT) tin (DOT) it) wrote:
: Hello Gents

: I have a application that work from 3 years and now on a prticular
: action show this error :

: java.sql.SQLException: Exhausted Resultset

: The application scan a table with ~8000000 rows



I think after scanning 8000000 rows for 3 years you'd be pretty exhausted
too.

As mentioned by another poster, the code needs to be retired, and replaced
with something new.


--

This space not for rent.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.