Discussion:
[lsc-users] lsc conditions - error on auditLog
Matjaz Premerl
2018-09-07 07:19:38 UTC
Permalink
Hi,

Today I want to try with the conditions within the sample environment of
lsc. For start I've started with the provided from the examples. When I run
the synchronization, I'm getting the error below. Can you maybe point me
what should I correct? In the error there is also mentioned something about
the auditLog.

***@ub1:~/lsc-2.1.4/sample/hsqldb$ bin/lsc-sample --run
Running "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../../../bin/lsc"
--config "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../etc" --synchronize
all --clean all
Sep 07 09:12:43 - ERROR - Unable to load configuration
(org.lsc.exception.LscConfigurationException: Configuration exception: null)
org.lsc.exception.LscConfigurationException: Configuration exception: null
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:162)
~[lsc-core-2.1.4.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:482)
[lsc-core-2.1.4.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:456)
[lsc-core-2.1.4.jar:na]
at org.lsc.Launcher.run(Launcher.java:205) [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: javax.xml.bind.UnmarshalException: null
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162)
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171)
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:189)
~[na:1.8.0_181]
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:160)
~[lsc-core-2.1.4.jar:na]
... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'conditions'. One of '{"
http://lsc-project.org/XSD/lsc-core-2.1.xsd":auditLog}' is expected.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
~[na:1.8.0_181]
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
~[na:1.8.0_181]

Regards,
MatjaÅŸ
Clément OUDOT
2018-09-07 07:48:57 UTC
Permalink
Post by Matjaz Premerl
Hi,
Today I want to try with the conditions within the sample environment
of lsc. For start I've started with the provided from the examples.
When I run the synchronization, I'm getting the error below. Can you
maybe point me what should I correct? In the error there is also
mentioned something about the auditLog.
Running "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../../../bin/lsc"
--config "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../etc"
--synchronize all --clean all
Sep 07 09:12:43 - ERROR - Unable to load configuration
(org.lsc.exception.LscConfigurationException: Configuration exception: null)
org.lsc.exception.LscConfigurationException: Configuration exception: null
        at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:162)
~[lsc-core-2.1.4.jar:na]
        at org.lsc.Configuration.setUp(Configuration.java:482)
[lsc-core-2.1.4.jar:na]
        at org.lsc.Configuration.setUp(Configuration.java:456)
[lsc-core-2.1.4.jar:na]
        at org.lsc.Launcher.run(Launcher.java:205) [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: javax.xml.bind.UnmarshalException: null
        at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
~[na:1.8.0_181]
        at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
~[na:1.8.0_181]
        at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
~[na:1.8.0_181]
        at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
~[na:1.8.0_181]
        at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
~[na:1.8.0_181]
        at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162)
~[na:1.8.0_181]
        at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171)
~[na:1.8.0_181]
        at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:189)
~[na:1.8.0_181]
        at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:160)
~[lsc-core-2.1.4.jar:na]
        ... 5 common frames omitted
Invalid content was found starting with element 'conditions'. One of
'{"http://lsc-project.org/XSD/lsc-core-2.1.xsd":auditLog}' is expected.
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
~[na:1.8.0_181]
        at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
~[na:1.8.0_181]
There should be an error in your lsc.xml file, you can validate its
syntax with :
lsc -v -f /home/matjazp/lsc-2.1.4/sample/hsqldb/etc
--
Clément Oudot | Identity Solutions Manager

***@worteks.com

Worteks | https://www.worteks.com

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

lsc-users mailing list
lsc-***@lists.lsc-project.org
https://lists.
Matjaz Premerl
2018-09-07 09:22:58 UTC
Permalink
Hi,

Thanks for last valuable answers. Regarding the conditions I've found that
I should put the conditions section before the <dataset> sections.
Now it's fine, and one simple condition is already working.

Regards,
MatjaÅŸ

V V pet., 7. sep. 2018 ob 09:49 je oseba Clément OUDOT <
Post by Matjaz Premerl
Post by Matjaz Premerl
Hi,
Today I want to try with the conditions within the sample environment
of lsc. For start I've started with the provided from the examples.
When I run the synchronization, I'm getting the error below. Can you
maybe point me what should I correct? In the error there is also
mentioned something about the auditLog.
Running "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../../../bin/lsc"
--config "/home/matjazp/lsc-2.1.4/sample/hsqldb/bin/../etc"
--synchronize all --clean all
Sep 07 09:12:43 - ERROR - Unable to load configuration
(org.lsc.exception.LscConfigurationException: Configuration exception: null)
null
Post by Matjaz Premerl
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:162)
Post by Matjaz Premerl
~[lsc-core-2.1.4.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:482)
[lsc-core-2.1.4.jar:na]
at org.lsc.Configuration.setUp(Configuration.java:456)
[lsc-core-2.1.4.jar:na]
at org.lsc.Launcher.run(Launcher.java:205)
[lsc-core-2.1.4.jar:na]
Post by Matjaz Premerl
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: javax.xml.bind.UnmarshalException: null
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:162)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:171)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:189)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:160)
Post by Matjaz Premerl
~[lsc-core-2.1.4.jar:na]
... 5 common frames omitted
Invalid content was found starting with element 'conditions'. One of
'{"http://lsc-project.org/XSD/lsc-core-2.1.xsd":auditLog}' is expected.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
Post by Matjaz Premerl
~[na:1.8.0_181]
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
Post by Matjaz Premerl
~[na:1.8.0_181]
There should be an error in your lsc.xml file, you can validate its
lsc -v -f /home/matjazp/lsc-2.1.4/sample/hsqldb/etc
--
Clément Oudot | Identity Solutions Manager
Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users
Loading...