aspose file tools
The moose likes JDBC and the fly likes result set object not moving to next record Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "result set object not moving to next record" Watch "result set object not moving to next record" New topic
Author

result set object not moving to next record

Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
When the query returns less than 10000 records, everything works fine and no problem at all.

When the query returns more than 10000(exactly 13,000), after certain no of records the resultSet.next() not moving to next record eventhough there are so many records to be fetched. It doesn't throw any exception either. It's just hanging there like waiting for something to complete. The interesting part is, this failure not happening at the particular record. I ran the test three times for the same input. It failed at 11097th, 11095th and 10218th records.

I have no clue what's causing the problem.

I appreciate your help.

Thanks,

Makesh


Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Makesh,

should we guess your code, what DDMS you use etc. or are you goin' to tell us?

Herman
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
Thank you for your response, Herman.

DataBase - Oracle 10.1.0.3
JDK - 1.4.2_03
Application Server - Oracle Application Server 10G 10.1.2.0.2

I am getting database connection from an Application Server Data source. This Data source was created very long time back.

DataSorce JDBC Driver: oracle.jdbc.driver.OracleDriver
Data Source class : com.evermind.sql.OrionCMTDataSource

PreparedStatement and its executeQuery are used in the function code.

If you need any information, please let me know.

Thanks,
Makesh

[ March 21, 2008: Message edited by: Makesh Kumar Ramakrishnan ]
[ March 21, 2008: Message edited by: Makesh Kumar Ramakrishnan ]
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Perhaps the Oracle JDBC Trace Facility will help if you enable it.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
This issue is fixed. The cause of this issue is memory problem. JDBC didn't throw any out of memory error, that made this problem difficult to debug.Thanks for your time ranchers.

Makesh
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Thanks for updating us.

Dave
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: result set object not moving to next record
 
Similar Threads
Struts2-Jquery Grid.
ResultSet Manipulation
applet-servlet - creating objects from resultset
myresultset.first
Uncommitted transaction state