I am seeing some strange behavior from a hasMore() call. It seems as if it
is taking roughly 4 minutes to return!! You can see from the logs and the
code snippet that the time between the log statements is 4 minutes!

Has anyone seen this sort of behavior before? Is there a fix/workaround?
I also noticed that if I log results.getCount(), it always returns zero?
Is this right?

"results" is an LDAPSearchResults object

Here is the code that is generating these logs:

logger.debug( "Completed search for user " + userID + " in
domain " + domain );

while( results.hasMore() ) { <--- This is taking 4 minutes!

logger.debug( "Loop Index = " + numMatches );
........


Here are the logs:

<>03/15/07 09:20:54.962 DEBUG [reqHandler:3] ** vonetix - RequestHandler
Thread
read req:
0010|505|19000|false|mcgraw-hill|passwordreset|resetPassword|arg1|MHE
<>03/15/07 09:20:54.962 DEBUG [reqHandler:3] ** vonetix - handling request for
feature: resetPassword
<>03/15/07 09:20:54.963 DEBUG [reqHandler:3] ** vonetix - Telling invoker
threa
d to invoke feature: resetPassword. Will wait: 19000ms for feature to execute
<>03/15/07 09:20:54.963 DEBUG [invokerThread46] ** vonetix.passwordreset -
Star
ting search for user glenn_ruff in domain MHE
<>03/15/07 09:20:55.098 DEBUG [invokerThread46] ** vonetix.passwordreset -
Comp
leted search for user glenn_ruff in domain MHE

//
//The while loop is done here
//

<>03/15/07 09:24:44.771 DEBUG [invokerThread46] ** vonetix.passwordreset -
Loop Index = 0
<>03/15/07 09:24:44.771 DEBUG [invokerThread46] ** vonetix.passwordreset -
Done parsing results
<>03/15/07 09:24:44.771 DEBUG [invokerThread46] ** vonetix.passwordreset -
Pars
ed 1 match(es) for user glenn_ruff in domain MHE
<>03/15/07 09:24:44.771 DEBUG [invokerThread46] ** vonetix.passwordreset -
User DN: (CN=Ruff\,
Glenn,OU=MHE,OU=Gahanna,OU=UsersByLocation,DC=MHE, DC=MHC), new password:
8P0xOpko
<>03/15/07 09:24:44.816 DEBUG [invokerThread46] ** vonetix.passwordreset -
Password reset successful