Java Iterator Time Out Error/Exception
RAMJANEAug 24 2012 — edited Aug 24 2012Hi 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