Hi everyone,
I'm having trouble setting up a paged search: apparently a response control is missing but I can't figure out how to create/use it...
here is my code:
Code:SearchControls searchControls = new SearchControls(); searchControls.setCountLimit(resultsLimit); searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE); CollectingNameClassPairCallbackHandler handler = new ContextMapperCallbackHandler(cm); PagedResultsDirContextProcessor requestControl = new PagedResultsDirContextProcessor(3); ldapTemplate.search(root, filter.encode(), searchControls, handler, requestControl); return handler.getList();
The request works just fine without the paged results dir context processor, otherwise it returns me 0 results and this error in the logs:
"No matching response control found for paged results - looking for 'class javax.naming.ldap.PagedResultsResponseControl"
Could anybody help me?
Thanks a lot


Reply With Quote
