Hi Juan,

The big is identified : If you need a fix, please consider updating the
following line in JScriptEvaluator.java : (it is linked to Java 8 Oracle
Nashorn JS engine which is not the Mozilla Rhino engine anymore)

String expressionImport =
"var version = java.lang.System.getProperty(\"java.version\");\n" +
"if (version.startsWith(\"1.8.0\")) { load(\"nashorn:mozilla_compat.js\");
}\n" +
"importPackage(org.lsc.utils.directory);\n" +
"importPackage(org.lsc.utils);\n" + expression;

Regards,

Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/

2014-11-25 19:19 GMT+01:00 Juan Godino <[email protected]>:

>  Hi,
>
>  We’re in the process of upgrade our project from JDK 7 using
> java.version 1.6 profile to compile to JDK 8 using java.version 1.7 profile
> to compile.
> When I run our sync process I’m getting the following error many times:
>
>  [initial-user-47] ERROR org.lsc.utils.JScriptEvaluator - Fail to compute
> expression: srcBean.getMainIdentifier() on
> id=CN=sysadmin,CN=Users,DC=eo,DC=local
> Reason: javax.script.ScriptException: ReferenceError: "importPackage" is
> not defined in <eval> at line number 1
> [initial-user-47] ERROR org.lsc.AbstractSynchronize - Error while
> synchronizing ID {samaccountname=sysadmin}:
> org.lsc.exception.LscServiceException: javax.script.ScriptException:
> ReferenceError: "importPackage" is not defined in <eval> at line number 1
> [RMI TCP Connection(2)-127.0.0.1] ERROR org.lsc.AbstractSynchronize - All
> entries: 1, to modify entries: 0, successfully modified entries: 0, errors:
> 1
>
>  We don’t get this error in our JDK 7 environment.
>
>  Any help to resolve this will be very much appreciated.
>
>  Carlos.
>
>
>
> ------------------------------
>
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
>
_______________________________________________________________
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