After I did 3 times searching,the exeception has been thrown.
Code:
Caused an ERROR
Operation failed; nested exception is javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Unwilling To Perform]; remaining name 'ou=users'
org.springframework.ldap.UncategorizedLdapException: Operation failed; nested exception is javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Unwilling To Perform]; remaining name 'ou=users'
Caused by: javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Unwilling To Perform]; remaining name 'ou=users'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3061)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
        at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1811)
        at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1734)
        at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:328)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:313)
        at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:238)
        at org.springframework.ldap.LdapTemplate$4.executeSearch(LdapTemplate.java:227)
        at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:268)
        at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:231)
        at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:526)
        at com.ibm.misidmanage.dao.UserDaoImpl.getPageResults(UserDaoImpl.java:158)
        at com.ibm.misidmanage.dao.UserDaoImpl.findAllUsers(UserDaoImpl.java:138)
        at com.ibm.misidmanage.dao.PageUserDaoTest.testFindAllUsers(PageUserDaoTest.java:97)
Then I set LdapContextSource object "pooled" to "false",the exeception disappeared.

Before doing this I set "com.sun.jndi.ldap.connect.pool.initsize" to "100" and also other "com.sun.jndi.ldap.connect.pool" properties,but no effect(the exception appear again).

why?I missed something?