Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Iterator Time Out Error/Exception

RAMJANEAug 24 2012 — edited Aug 24 2012
Hi All,

We have an iterator , which is iterating a data coming from a database through API .
Approximately number of records are 5000+ records.
Now when we are iterating it , iterator.hasnext() method is giving the below error.

*"java.util.NoSuchElementException: Timeout error waiting for data. Please try again later."*

I printed some logs while iterating it and found out that , the time out error is coming after a particular record on a particular machine/environment.
Most importatnt part is that , the error is coming after 3072th , 4224 , 4096th record.They all are multiple of 128.

So , I am wondering is this a Memory issue/Heap size issue.

Any help will be appriciated.

Thanks,

Edited by: RAMJANE on Aug 24, 2012 7:09 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2012
Added on Aug 24 2012
4 comments
432 views