• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

result set object not moving to next record

 
Makesh Kumar Ramakrishnan
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the Oracle JDBC Trace Facility will help if you enable it.
 
Makesh Kumar Ramakrishnan
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for updating us.

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic