Java updated to:
Openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
A new error occurred:
Jun 08 14:28:38 - DEBUG - org.lsc.exception.LscServiceException:
javax.script.ScriptException: ReferenceError: "userPassword" is not defined
in nashorn: mozilla_compat.js at line number 67
Org.lsc.exception.LscServiceException: javax.script.ScriptException:
ReferenceError: "userPassword" is not defined in nashorn: mozilla_compat.js
at line number 67
At org.lsc.utils.JScriptEvaluator.instanceEval
(JScriptEvaluator.java:236) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.utils.JScriptEvaluator.evalToStringList
(JScriptEvaluator.java:120) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.utils.ScriptingEvaluator.evalToStringList
(ScriptingEvaluator.java:136) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.beans.BeanComparator.getValuesToSet
(BeanComparator.java:629) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.beans.BeanComparator.getUpdatedObject
(BeanComparator.java:284) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.beans.BeanComparator.calculateModifications
(BeanComparator.java:176) ~ [lsc-core-2.1.4.jar: na]
At org.lsc.SynchronizeTask.run (AbstractSynchronize.java:755)
[lsc-core-2.1.4.jar: na]
At org.lsc.SynchronizeTask.run (AbstractSynchronize.java:689)
[lsc-core-2.1.4.jar: na]
At java.util.concurrent.ThreadPoolExecutor.runWorker
(ThreadPoolExecutor.java:1142) [na: 1.8.0_131]
At java.util.concurrent.ThreadPoolExecutor $ Worker.run
(ThreadPoolExecutor.java:617) [na: 1.8.0_131]
At java.lang.Thread.run (Thread.java:748) [na: 1.8.0_131]
Caused by: javax.script.ScriptException: ReferenceError: "userPassword" is
not defined in nashorn: mozilla_compat.js at line number 67
At
jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException
(NashornScriptEngine.java:470) ~ [nashorn.jar: na ..
Searching I found this:
Https://lists.lsc-project.org/pipermail/lsc-users/2016-December/003185.html
And I changed
<CreateValues>
<String> userPassword; </ string>
</ CreateValues>
For
<CreateValues>
<String> "userPassword"; </ string>
</ CreateValues>
That worked !!!
Thanks a lot!
2017-06-08 13:06 GMT-03:00 Anderson P. Almeida <[email protected]>
:
> I'll post the results soon.
>
> Thank you Soisik!
>
>
>
> 2017-06-08 12:27 GMT-03:00 Soisik Froger <soisik.froger@
> savoirfairelinux.com>:
>
>> On 08/06/2017 15:34, Anderson P. Almeida wrote:
>>
>>> The Java version:
>>>
>>> openjdk version "1.7.0_141"
>>> OpenJDK Runtime Environment (build 1.7.0_141-b02)
>>> OpenJDK 64-Bit Server VM (build 24.95-b02, mixed mode)
>>>
>>> Very thanks
>>>
>>> 2017-06-08 10:28 GMT-03:00 Anderson P. Almeida <
>>> [email protected] <mailto:[email protected]>>:
>>>
>>> Hello guys,
>>>
>>> Can help me with this error in OS FreeBSD 11.0-STABLE?
>>>
>>> The same lsc and ldap configuration works on debian.
>>>
>>> Logs:
>>>
>>> Jun 07 16:35:04 - INFO - Starting sync for lsc
>>> Jun 07 16:35:04 - ERROR - Error while synchronizing ID
>>> {uid=felipe.almeida}: java.lang.NullPointerException
>>> Jun 07 16:35:04 - DEBUG - java.lang.NullPointerException
>>> java.lang.NullPointerException: null
>>> at org.lsc.utils.ScriptingEvaluat
>>> or.evalToString(ScriptingEvaluator.java:129) ~[lsc-core-2.1.4.jar:na]
>>> at org.lsc.beans.BeanComparator.c
>>> loneSrcBean(BeanComparator.java:530) ~[lsc-core-2.1.4.jar:na]
>>> at org.lsc.beans.BeanComparator.c
>>> alculateModificationType(BeanComparator.java:127)
>>> ~[lsc-core-2.1.4.jar:na]
>>> at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:733)
>>> [lsc-core-2.1.4.jar:na]
>>> at org.lsc.SynchronizeTask.run(AbstractSynchronize.java:689)
>>> [lsc-core-2.1.4.jar:na]
>>> at java.util.concurrent.ThreadPoo
>>> lExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_141]
>>> at java.util.concurrent.ThreadPoo
>>> lExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_141]
>>> at java.lang.Thread.run(Thread.java:748) [na:1.7.0_141]
>>> Jun 07 16:35:04 - ERROR - All entries: 1, to modify entries: 0,
>>> successfully modified entries: 0, errors: 1
>>> Jun 07 16:35:04 - INFO - Starting clean for pop2rnp
>>> Jun 07 16:35:04 - INFO - All entries: 1, to modify entries: 0,
>>> successfully modified entries: 0, errors: 0
>>>
>>> --
>>> Anderson P. Almeida
>>>
>>>
>>>
>>>
>>> --
>>> Anderson P. Almeida
>>>
>>>
>> Hi Anderson,
>>
>> I think you may be having this issue https://stackoverflow.com/ques
>> tions/10054252/trying-to-use-rhino-getenginebynamejavascript
>> -returns-null-in-openjdk-7, because the command fails on calling the
>> rhino javascript engine.
>>
>> Which is not a OpenJDK bug according to Oracle :
>> http://bugs.java.com/view_bug.do?bug_id=6876736, but distros.
>>
>> I don't know much about FreeBSD, but according to this thread, port
>> install rhino should fix it (https://stackoverflow.com/que
>> stions/4649519/jvm-missing-rhino).
>>
>> It could also be an opportunity to upgrade to Java 8 which includes
>> Nashborn script engine, see thread https://stackoverflow.com/ques
>> tions/30007787/why-does-getenginebyname-js-return-null?noredirect=1&lq=1,
>>
>> Good luck
>> --
>> Soisik
>> _______________________________________________________________
>> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>>
>> lsc-users mailing list
>> [email protected]
>> https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
>
>
>
>
> --
> Anderson P. Almeida
>
--
Anderson P. Almeida
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users