File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Java App processed partial resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Java App processed partial resultset" Watch "Java App processed partial resultset" New topic

Java App processed partial resultset

David Miranda
Ranch Hand

Joined: Mar 14, 2005
Posts: 34
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?

suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
Hi David,

Just a thought, may be its your selection criteria or the attributes you are filtering which affect the result set.
I agree. Here's the link:
subject: Java App processed partial resultset
It's not a secret anymore!