[lsc-users] LscConfigurationException with no explanation

Alberto Martínez Setién alberto.martinez at deusto.es
Tue May 22 17:47:59 CEST 2018


Ok, I did change all log levels to DEBUG.

may 22 17:42:56 - DEBUG - Loading XML configuration from: /etc/lsc/lsc.xml
> may 22 17:42:56 - DEBUG - going to scan these urls:
> jar:file:/usr/lib/lsc/lsc-core-2.1.4.jar!/
> may 22 17:42:57 - INFO  - Reflections took 265 ms to scan 1 urls,
> producing 56 keys and 117 values
> may 22 17:42:57 - DEBUG - Importing XML schema file:
> schemas/lsc-core-2.1.xsd
> may 22 17:42:57 - INFO  - Logging configuration successfully loaded from
> /etc/lsc/logback.xml
> may 22 17:42:57 - INFO  - LSC configuration successfully loaded from
> /etc/lsc/
> may 22 17:42:57 - INFO  - Connecting to LDAP server ldaps://
> ldap-centralita.deusto.es:636 as cn=admin,dc=deusto,dc=es
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.18060.0.0.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.18060.0.0.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.7
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.7
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.319
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.319
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.10.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.10.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.18060.0.0.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.18060.0.0.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.7
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.7
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.319
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.319
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 2.16.840.1.113730.3.4.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.10.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.10.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.42.2.27.8.5.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.42.2.27.8.5.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.3
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.4
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.4
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.1
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.3.6.1.4.1.4203.1.9.1.2
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.473
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.473
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.474
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.474
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.841
> may 22 17:42:58 - INFO  - Registered pre-bundled control factory:
> 1.2.840.113556.1.4.841
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.1.8
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.1.8
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.8
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.8
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.3
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.3
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.6
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.6
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.5
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.18060.0.1.5
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.4203.1.11.1
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.4203.1.11.1
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.4203.1.11.3
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.4203.1.11.3
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.1466.20037
> may 22 17:42:58 - INFO  - Registered pre-bundled extended operation
> factory: 1.3.6.1.4.1.1466.20037
> may 22 17:42:58 - ERROR - org.lsc.exception.LscConfigurationException:
> Configuration exception: null
> may 22 17:42:58 - DEBUG - org.lsc.exception.LscConfigurationException:
> Configuration exception: null
> org.lsc.exception.LscConfigurationException: Configuration exception: null
>     at org.lsc.Task.<init>(Task.java:148) ~[lsc-core-2.1.4.jar:na]
>     at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:104)
> ~[lsc-core-2.1.4.jar:na]
>     at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:154)
> ~[lsc-core-2.1.4.jar:na]
>     at org.lsc.Launcher.run(Launcher.java:223) [lsc-core-2.1.4.jar:na]
>     at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.1.4.jar:na]
>     at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.1.4.jar:na]
> Caused by: java.lang.NullPointerException: null
>     at org.lsc.jndi.JndiServices.getContextDn(JndiServices.java:1201)
> ~[lsc-core-2.1.4.jar:na]
>     at
> org.lsc.jndi.AbstractSimpleJndiService.<init>(AbstractSimpleJndiService.java:177)
> ~[lsc-core-2.1.4.jar:na]
>     at
> org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService.java:98)
> ~[lsc-core-2.1.4.jar:na]
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) ~[na:1.8.0_171]
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> ~[na:1.8.0_171]
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> ~[na:1.8.0_171]
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> ~[na:1.8.0_171]
>     at org.lsc.Task.<init>(Task.java:117) ~[lsc-core-2.1.4.jar:na]
>     ... 5 common frames omitted
>

If I had to guess I'd say that LSC connects but is missing something
(contextDn?). LDAP source is an OpenLDAP directory...

Configuration check ends with no problem:

may 22 17:44:29 - DEBUG - Loading XML configuration from: /etc/lsc/lsc.xml
may 22 17:44:29 - DEBUG - going to scan these urls:
jar:file:/usr/lib/lsc/lsc-core-2.1.4.jar!/
may 22 17:44:29 - INFO  - Reflections took 222 ms to scan 1 urls, producing
56 keys and 117 values
may 22 17:44:29 - DEBUG - Importing XML schema file:
schemas/lsc-core-2.1.xsd
may 22 17:44:30 - INFO  - Logging configuration successfully loaded from
/etc/lsc/logback.xml
may 22 17:44:30 - INFO  - LSC configuration successfully loaded from
/etc/lsc/
may 22 17:44:30 - INFO  - Configuration and environment successfully
checked !


El mar., 22 may. 2018 a las 17:38, Clément OUDOT (<clement.oudot at worteks.com>)
escribió:

>
>
> Le 22/05/2018 à 17:27, Alberto Martínez Setién a écrit :
>
> Hi all,
>
> I'm having trouble setting up LSC for the first time.
> Output is:
>
> may 22 17:19:04 - DEBUG - going to scan these urls:
>> jar:file:/usr/lib/lsc/lsc-core-2.1.4.jar!/
>> may 22 17:19:04 - INFO  - Reflections took 254 ms to scan 1 urls,
>> producing 56 keys and 117 values
>> may 22 17:19:05 - INFO  - Logging configuration successfully loaded from
>> /etc/lsc/logback.xml
>> may 22 17:19:05 - INFO  - LSC configuration successfully loaded from
>> /etc/lsc/
>> may 22 17:19:05 - INFO  - Connecting to LDAP server ldaps://
>> ldap-centralita.deusto.es:636 as cn=admin,dc=deusto,dc=es
>> may 22 17:19:05 - ERROR - org.lsc.exception.LscConfigurationException:
>> Configuration exception: null
>>
>
> I don't know where to start debugging this. Can you offer some hint?
>
>
> You should set DEBUG in /etc/lsc/logback.xml for lsc and org.lsc logger.
>
> You can verify lsc.xml syntax with:
> # lsc -f /etc/lsc/ -v
>
> --
> Clément Oudot | Identity Solutions Manager
>
> Worteks | https://www.worteks.com
>
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> lsc-users at lists.lsc-project.org
> https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-users/attachments/20180522/8a4a1be3/attachment-0001.html>


More information about the lsc-users mailing list