- 报错日志:
2021-03-18 17:13:15.447 WARN 8 — [ LdapExecutor-1] io.choerodon.mybatis.helper.AuditHelper : principal not instanceof CustomUserDetails audit user is 0L
2021-03-18 17:13:15.577 ERROR 8 — [ LdapExecutor-1] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected error occurred invoking async method: public void org.hzero.iam.domain.service.ldap.LdapSyncUserTask.syncLDAPUser(org.springframework.ldap.core.LdapTemplate,org.hzero.iam.domain.entity.Ldap,org.hzero.iam.domain.service.ldap.LdapSyncUserTask$FinishFallback,java.lang.String)
org.springframework.ldap.PartialResultException: Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ‘’
at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:216) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:385) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:328) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:604) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.hzero.iam.domain.service.ldap.LdapSyncUserTask.lambda$getUsersFromLdapServer$1(LdapSyncUserTask.java:189) ~[hzero-iam-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.hzero.iam.domain.service.ldap.LdapSyncUserTask$$Lambda$1100/0x000000006005c4a0.doWithLdapOperations(Unknown Source) ~[na:na]
at org.springframework.ldap.core.support.SingleContextSource.doWithSingleContext(SingleContextSource.java:153) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.springframework.ldap.core.support.SingleContextSource.doWithSingleContext(SingleContextSource.java:115) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
at org.hzero.iam.domain.service.ldap.LdapSyncUserTask.getUsersFromLdapServer(LdapSyncUserTask.java:183) ~[hzero-iam-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.hzero.iam.domain.service.ldap.LdapSyncUserTask.syncLDAPUser(LdapSyncUserTask.java:110) ~[hzero-iam-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.hzero.iam.domain.service.ldap.LdapSyncUserTask$$FastClassBySpringCGLIB$$62ad57b7.invoke() ~[hzero-iam-1.5.3.RELEASE.jar!/:1.5.3.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor$$Lambda$957/0x00000000940164b0.call(Unknown Source) [spring-aop-5.0.10.RELEASE.jar!/:5.0.10.RELEASE]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_272]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_272]
at java.lang.Thread.run(Thread.java:823) [na:1.8.0_272]
Caused by: javax.naming.PartialResultException: Unprocessed Continuation Reference(s)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3024) ~[na:1.8.0_272]
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2998) ~[na:1.8.0_272]
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.getNextBatch(AbstractLdapNamingEnumeration.java:148) ~[na:1.8.0_272]
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMoreImpl(AbstractLdapNamingEnumeration.java:217) ~[na:1.8.0_272]
at com.sun.jndi.ldap.AbstractLdapNamingEnumeration.hasMore(AbstractLdapNamingEnumeration.java:189) ~[na:1.8.0_272]
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:365) ~[spring-ldap-core-2.3.2.RELEASE.jar!/:2.3.2.RELEASE]
… 18 common frames omitted