File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes ResultSet not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ResultSet not working" Watch "ResultSet not working" New topic
Author

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: 10.1.0.3.0
Java version: 1.4.2_04
Application server: Oracle AS 10.1.2.0.2

I appreciate your help

Thanks,


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.


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSet not working