Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: LDAP response read timed out, timeout used:10000ms

0
Sync Users functionality of Ldap is throwing below exception after sometime org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: LDAP response read timed out, timeout used:10000ms.     at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:228)     at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:397)     at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:328)     at ldap.LdapModule.pagedSearch(LdapModule.java:438)     at ldap.LdapModule.searchAD(LdapModule.java:393)     at ldap.ImportUserRecord.importUsersByPath(ImportUserRecord.java:240)     at ldap.ImportUserRecord.runImportUsersByPath(ImportUserRecord.java:116)     at ldap.actions.ImportLdapUsers.executeAction(ImportLdapUsers.java:49)     at ldap.actions.ImportLdapUsers.executeAction(ImportLdapUsers.java:27)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155)     at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:414)     at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18)     at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)     at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22)     at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:68)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:55)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)     at com.mendix.basis.actionmanagement.AsyncExecution.$anonfun$call$1(AsyncExecution.scala:21)     at scala.util.Try$.apply(Try.scala:209)     at com.mendix.basis.actionmanagement.AsyncExecution.call(AsyncExecution.scala:21)     at com.mendix.basis.actionmanagement.AsyncExecution.$anonfun$execute$1(AsyncExecution.scala:17)     at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:654)     at scala.util.Success.$anonfun$map$1(Try.scala:251)     at scala.util.Success.map(Try.scala:209)     at scala.concurrent.Future.$anonfun$map$1(Future.scala:288)     at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)     at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)     at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)     at java.lang.Thread.run(Thread.java:748) Caused by: javax.naming.NamingException: LDAP response read timed out, timeout used:10000ms.     at com.sun.jndi.ldap.Connection.readReply(Connection.java:490)     at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:638)
asked
1 answers
0

Your LDAP server is not responding in the timeout that was set, hence the timeout exception.

For more information have a look at: https://docs.oracle.com/javase/tutorial/jndi/newstuff/readtimeout.html

answered