File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes ResultSet not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "ResultSet not working" Watch "ResultSet not working" New topic

ResultSet not working

Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
My query returns 64000 records. I am using ordinary result set object to retrieve the records. All the records are stored in to ArrayList.
After certain number of records(11000), the resultSet neither moves to next record or throws any exception. It seems to me like a weird problem. I don't know what might be the cause of the problem.

Please let me know. If you think, it might be a memory problem, then pls let me know how to increase heap memory of Oracle AS.

Oracle JDBC Drive version:
Java version: 1.4.2_04
Application server: Oracle AS

I appreciate your help


Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
Chad Clites
Ranch Hand

Joined: Aug 16, 2005
Posts: 134
It would be helpful to see the code that you are using. My guess is that right around record 11000, there is a null value, and you are not getting an error because the code is not contained in a try/catch block, or the exception is being swallowed. In general, dumping results to an ArrayList is pretty straight forward.
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
Thanks you for your reply. I forgot inform that this problem is not consistent one. it executes for someother input. any way i posted my code below. For your information, I checked with my DBA, he said that the cursor is not closed at all. its in 'executing mode'.

Please let me know if you need any further details.

I agree. Here's the link:
subject: ResultSet not working
It's not a secret anymore!