Results 1 to 7 of 7

Thread: Paged results: no matching response control found

  1. #1
    Join Date
    May 2010
    Posts
    4

    Default Paged results: no matching response control found

    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

  2. #2

    Default

    What LDAP server are you using? Did you make sure that the LDAP server you are using
    supports paged results?

  3. #3
    Join Date
    May 2010
    Posts
    4

    Default

    Hi Bvar,

    I'm not a 10% sure but another application appears to do the same thing, so I guess the server implements paged search.

    Anyway, I feel like the server isn't the problem here: I checked into the logs and there was no trace of my connections, so apparently they died before even reaching the server.

    That's why I think the problem comes from the code: don't you notice anything wrong with it?

  4. #4
    Join Date
    Jul 2011
    Posts
    4

    Default

    Did you solve this issue?
    I have the same problem and I've tried a lot of things to solve it, but with no luck.

  5. #5

    Default

    Quote Originally Posted by ovedwish View Post
    Did you solve this issue?
    I have the same problem and I've tried a lot of things to solve it, but with no luck.
    Did you resolve this now?

  6. #6
    Join Date
    Jul 2011
    Posts
    4

    Default

    The problem occured in my environment due to a bug in Jboss 7, in its earlier stages. It was now solved, so I didn't encounter this issue again.

    What environment are you working on?

    Do you have more information on the exact error/exception?

    I'll be happy to help.

    Oved

  7. #7

    Default

    The details are here, please help

    http://forum.springsource.org/showth...-query-on-LDAP

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •