Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java App processed partial resultset

 
David Miranda
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Is there any reason why a Java program would only process a partial resultset from LDAP?

I queried an LDAP database using a Java program, the LDAP logs say LDAP sent 10232 entries back:

op=1 msgId=2 - RESULT err=0 tag=101 nentries=10232 etime=1206 notes=U

But my program while(results.hasMoreElements()) returned 3012. No exceptions were thrown.

Any ideas why this would happen? Buffer overflow? Network issues? Client memory issues?

Thanks
 
suekar meredilko
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Just a thought, may be its your selection criteria or the attributes you are filtering which affect the result set.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!