LDAP Synchronization v4.0

0
I am in the progress for trying out the LDAP module in the standard cloud with the new certificates possibility. I have updated my LDAP module with version 4, but when I click on the OpenLdapServersOverview microflow I get the following java error: ld: com.mendix.core.CoreRuntimeException: java.lang.RuntimeException: Failed to execute batch on '//Ldap.LookupUserEntity' offset 0: 2 at Ldap.OpenLdapServersOverview (JavaAction : 'Read System.user derivates') Advanced stacktrace: at mq.a(SourceFile:187) Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: java.lang.RuntimeException: Failed to execute batch on '//Ldap.LookupUserEntity' offset 0: 2 at com.mendix.core.Core.execute(SourceFile:225) Caused by: com.mendix.core.CoreRuntimeException: java.lang.RuntimeException: Failed to execute batch on '//Ldap.LookupUserEntity' offset 0: 2 at hA.b(SourceFile:204) Caused by: java.lang.RuntimeException: Failed to execute batch on '//Ldap.LookupUserEntity' offset 0: 2 at communitycommons.XPath.batch(XPath.java:611) at ldap.actions.ReadSystemUserDerivates.executeAction(ReadSystemUserDerivates.java:52) at ldap.actions.ReadSystemUserDerivates.executeAction(ReadSystemUserDerivates.java:28) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hA.b(SourceFile:193) at com.mendix.core.Core.execute(SourceFile:219) at lk.a(SourceFile:69) at mq.a(SourceFile:72) at mp.a(SourceFile:151) at mp.executeAction(SourceFile:98) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hA.b(SourceFile:193) at com.mendix.core.Core.execute(SourceFile:219) at gl.execute(SourceFile:186) at ja.a(SourceFile:319) at com.mendix.externalinterface.connector.RequestDispatching$Worker.a(SourceFile:157) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.a(SourceFile:148) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.apply(SourceFile:147) at akka.actor.Actor$class.apply(Actor.scala:545) at com.mendix.externalinterface.connector.RequestDispatching$Worker.apply(SourceFile:143) at akka.actor.LocalActorRef.invoke(ActorRef.scala:910) at akka.dispatch.MessageInvocation.invoke(MessageHandling.scala:25) at akka.dispatch.ExecutableMailbox$class.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:223) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:123) at akka.dispatch.ExecutableMailbox$class.run(ExecutorBasedEventDrivenDispatcher.scala:195) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.run(ExecutorBasedEventDrivenDispatcher.scala:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at akka.dispatch.MonitorableThread.run(ThreadPoolBuilder.scala:192) Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at communitycommons.XPath.syncDatabaseWithCollection(XPath.java:359) at ldap.actions.ReadSystemUserDerivates$1.onItem(ReadSystemUserDerivates.java:66) at ldap.actions.ReadSystemUserDerivates$1.onItem(ReadSystemUserDerivates.java:53) at communitycommons.XPath.batch(XPath.java:607) at ldap.actions.ReadSystemUserDerivates.executeAction(ReadSystemUserDerivates.java:52) at ldap.actions.ReadSystemUserDerivates.executeAction(ReadSystemUserDerivates.java:28) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hA.b(SourceFile:193) at com.mendix.core.Core.execute(SourceFile:219) at lk.a(SourceFile:69) at mq.a(SourceFile:72) at mp.a(SourceFile:151) at mp.executeAction(SourceFile:98) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457) at hA.b(SourceFile:193) at com.mendix.core.Core.execute(SourceFile:219) at gl.execute(SourceFile:186) at ja.a(SourceFile:319) at com.mendix.externalinterface.connector.RequestDispatching$Worker.a(SourceFile:157) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.a(SourceFile:148) at com.mendix.externalinterface.connector.RequestDispatching$Worker$a.apply(SourceFile:147) at akka.actor.Actor$class.apply(Actor.scala:545) at com.mendix.externalinterface.connector.RequestDispatching$Worker.apply(SourceFile:143) at akka.actor.LocalActorRef.invoke(ActorRef.scala:910) at akka.dispatch.MessageInvocation.invoke(MessageHandling.scala:25) at akka.dispatch.ExecutableMailbox$class.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:223) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.processMailbox(ExecutorBasedEventDrivenDispatcher.scala:123) at akka.dispatch.ExecutableMailbox$class.run(ExecutorBasedEventDrivenDispatcher.scala:195) at akka.dispatch.ExecutorBasedEventDrivenDispatcher$$anon$4.run(ExecutorBasedEventDrivenDispatcher.scala:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at akka.dispatch.MonitorableThread.run(ThreadPoolBuilder.scala:192) What does the Read System.user derivates java action do and what must or can I do with this error? Regards, Ronald
asked
1 answers
1

Hi Ronald,

This is a bug in community commons. Either upgrade to community commons 2.4.2 or apply the following patch:

At line 358 of javascource/communitycommons/XPath, replace line 358

for(int i = 0; i < args.length; i++)

with

for(int i = 0; i < keysAndValues.length; i++)
answered