• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

result set object not moving to next record

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for updating us.

Dave
 
reply
    Bookmark Topic Watch Topic
  • New Topic