Issue #224 has been updated by Raphaël Ouazana.
On an other task, I get the same problem in one of my script, but with
different consequences.
This is important because:
1/ I get a backtrace while I'm only in INFO mode.
2/ I get "errors: 0" which is not at all the case.
mai 28 18:21:22 - ERROR - org.mozilla.javascript.EcmaError: TypeError: Cannot
call method "size" of null (<cmd>#1)
mai 28 18:21:22 - ERROR - javax.naming.NameNotFoundException: [LDAP: error code
32 - No Such Object]; remaining name 'ou=bla / bla,o=bla'
mai 28 18:21:22 - ERROR - Programmatic error
java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) [na:na]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[na:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_20]
at org.lsc.jndi.ScriptableObject.wrap(ScriptableObject.java:92)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.jndi.ScriptableObject.wrapString(ScriptableObject.java:155)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.jndi.ScriptableJndiServices.search(ScriptableJndiServices.java:83)
[lsc-core-1.2-SNAPSHOT.jar:na]
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) [na:na]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[na:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_20]
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
[js-1.6R5.jar:na]
at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
[js-1.6R5.jar:na]
at
org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
[js-1.6R5.jar:na]
at org.mozilla.javascript.gen.c2._c0(<cmd>:1) [na:na]
at org.mozilla.javascript.gen.c2.call(<cmd>) [na:na]
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
[js-1.6R5.jar:na]
at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
[js-1.6R5.jar:na]
at org.mozilla.javascript.gen.c2.call(<cmd>) [na:na]
at org.mozilla.javascript.gen.c2.exec(<cmd>) [na:na]
at
org.lsc.utils.JScriptEvaluator.instanceEval(JScriptEvaluator.java:227)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.utils.JScriptEvaluator.evalToStringList(JScriptEvaluator.java:140)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.beans.BeanComparator.getValuesToSet(BeanComparator.java:633)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.beans.BeanComparator.getAddModifyEntry(BeanComparator.java:328)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.beans.BeanComparator.calculateModifications(BeanComparator.java:203)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.AbstractSynchronize.synchronize2Ldap(AbstractSynchronize.java:372)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:273)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:156)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.Launcher.run(Launcher.java:151)
[lsc-core-1.2-SNAPSHOT.jar:na]
at org.lsc.Launcher.main(Launcher.java:123)
[lsc-core-1.2-SNAPSHOT.jar:na]
Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such
Object]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3066)
[na:1.6.0_20]
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
[na:1.6.0_20]
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
[na:1.6.0_20]
at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:1011) [na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.ComponentContext.c_resolveIntermediate_nns(ComponentContext.java:152)
[na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.AtomicContext.c_resolveIntermediate_nns(AtomicContext.java:342)
[na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.ComponentContext.p_resolveIntermediate(ComponentContext.java:381)
[na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:360)
[na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
[na:1.6.0_20]
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
[na:1.6.0_20]
at
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
[na:1.6.0_20]
at org.lsc.jndi.JndiServices.getDnList(JndiServices.java:486)
[lsc-core-1.2-SNAPSHOT.jar:na]
at
org.lsc.jndi.ScriptableJndiServices._search(ScriptableJndiServices.java:88)
[lsc-core-1.2-SNAPSHOT.jar:na]
... 28 common frames omitted
mai 28 18:21:27 - ERROR - org.mozilla.javascript.EcmaError: TypeError: Cannot
call method "size" of null (<cmd>#1)
mai 28 18:21:28 - ERROR - org.mozilla.javascript.EcmaError: ReferenceError:
"myVar" n'est pas défini (<cmd>#1)
mai 28 18:21:30 - INFO - All entries: 1793, to modify entries: 0, modified
entries: 0, errors: 0
----------------------------------------
Bug #224: Bad handling of / character in RDN
http://tools.lsc-project.org/issues/224
Author: Raphaël Ouazana
Status: New
Priority: Normal
Assigned to:
Category:
Target version:
Hi,
LSC seems to handle incorrectly the slash character (/). In some cases I get
the following message:
Error while reading entry "ou=bla / bla",o=bla:
javax.naming.InvalidNameException: "ou=bla / bla",o=bla: close quote appears
before end of component
Note the oddly added quotes.
Regards,
Raphaël Ouazana.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev