Hi Clément,

Yes I´m using LSC 2.1.2...Is the bug with Java 8 fixed in the version 2.1.2 of LSC?

Ali.

Am 24.02.15 um 13:56 schrieb Clément OUDOT:
2015-02-24 13:01 GMT+01:00 Ali Oezdemir <[email protected]>:
Hi Clément,

My java version is:

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

And the JAVA_HOME directory is: JAVA_HOME=/usr/lib64/jvm/jre

I put the java array force at the end of the dataset script as follows:

<![CDATA[rjs:
             var membersSrcDn = srcBean.getDatasetValuesById("member");
             var membersDstDn = [];
             for (var i=0; i<membersSrcDn.length; i++) {
                 var memberSrcDn = membersSrcDn.get(i);
                 var uid = "";

                 try {
                     uid = srcLdap.attribute(memberSrcDn, "uid").get(0);

                 } catch(e) {
                     continue;
                 }
                 var destDn = ldap.search("CN=Users",
"(sAMAccountName="+uid+")");
                 if (destDn.length == 0 || destDn.length > 1) {
                     continue;
                 }
                 var destMemberDn = destDn.get(0) + "," +
ldap.getContextDn();

                 membersDstDn.push(destMemberDn);
             }
             //membersDstDn

             var resTab =
java.lang.reflect.Array.newInstance(java.lang.String,membersDstDn.length);
             for (var i=0; i<membersDstDn.length; i++) {
                resTab[i] = membersDstDn[i];
             }
             resTab
         ]]>

Do you have any idea why I get the following Error:

ERROR - Error while synchronizing ID {cn=[kw_lehre]}:
org.lsc.exception.LscServiceException: java.lang.RuntimeException:
java.lang.NoSuchMethodException: None of the fixed arity signatures
[(java.lang.Class, int), (java.lang.Class, int[])] or the variable arity
signatures [(java.lang.Class, int...)] of the method
java.lang.reflect.Array.newInstance match the argument types
[jdk.internal.dynalink.beans.StaticClass, java.lang.Long]

Thank you in advance for your help.


Hi,

a bug with java 8 was fixed in the latest version:
http://tools.lsc-project.org/issues/740

Are you using LSC 2.1.2?


Clément.


_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to