We're running some java code (pasted far below) that does a paged search against AD. The code goes through all users 1000 users per page. It takes about 3 minutes to do some processing on each batch of 1000, once done it goes out and requests the next 1000. Now this code runs fine in our dev and test environments. But in our prod environment it fails consistently, it never makes it through all the pages successfully. In all our environments we have roughly 300k user in AD. In prod sometimes the code fails after the second page, sometimes after the 159th page, sometimes after the 20th page it always fails at different points....the problem happens at some point in processing when we go out and try getting the next page of users we get the following error:
javax.naming.OperationNotSupportedException: [LDAP: error code 12 - 00000057: LdapErr: DSID-0C090745, comment: Error processing control, data 0, v1db0]; remaining name 'DC=domain,DC=com'
The only real difference between prod and our dev/test environments is that dev/test were built from the ground up as 2008 servers whereas prod was a 2003 that we upgraded to 2008. All of our environments are 2008 R2. Has anyone run into this problem before? The below code in essence does the same thing our code is doing i've substituted the processing we do for each batch of users with a sleep of 3 minutes to simulate it. The same error occurs with the below code in our prod environment but works fine in our test/qa.....Thanks in advance!
As the client code is presumably the same, the only possible difference is that the production LDAP server returns that error message and the development and test servers don't. IOW they are different, or differently configured.