Issue #485 has been updated by Clément OUDOT.
Ok, so I agree to desactivate this option for 2.0 release. ---------------------------------------- Bug #485: Error when converting old LSC configuration file http://tools.lsc-project.org/issues/485 Author: Clément OUDOT Status: New Priority: Normal Assigned to: Category: Core Target version: 2.0 Problem in version: When trying to migrate old configuration file, I get: <pre> juin 19 17:55:48 - WARN - LSC configuration loaded from old properties file format ! juin 19 17:55:48 - DEBUG - Loading configuration url: file:/home/clement/tmp/lsc-ref/lsc.properties juin 19 17:55:48 - ERROR - Defined configuration location (/home/clement/workspace/lsc-core-2.0/etc) points to a non existing LSC configured instance. LSC configuration loading will fail ! Error: java.lang.RuntimeException: Defined configuration location (/home/clement/workspace/lsc-core-2.0/etc) points to a non existing LSC configured instance. LSC configuration loading will fail ! java.lang.RuntimeException: Defined configuration location (/home/clement/workspace/lsc-core-2.0/etc) points to a non existing LSC configured instance. LSC configuration loading will fail ! at org.lsc.Configuration.setUp(Configuration.java:474) at org.lsc.Configuration.setUp(Configuration.java:437) at org.lsc.configuration.LscConfiguration.getInstance(LscConfiguration.java:133) at org.lsc.configuration.LscConfiguration.getConnections(LscConfiguration.java:168) at org.lsc.configuration.LscConfiguration.getConnection(LscConfiguration.java:173) at org.lsc.configuration.PropertiesConfigurationHelper.newTask(PropertiesConfigurationHelper.java:190) at org.lsc.configuration.PropertiesConfigurationHelper.loadConfigurationFrom(PropertiesConfigurationHelper.java:158) at org.lsc.Configuration.setUp(Configuration.java:484) at org.lsc.Launcher.run(Launcher.java:182) at org.lsc.Launcher.launch(Launcher.java:158) at org.lsc.Launcher.main(Launcher.java:141) </pre> To make it work, I have to create a lsc.xml file in /home/clement/workspace/lsc-core-2.0/etc, which is not really used, as the converted configuration is written in the directory where lsc.properties is: <pre> juin 19 17:57:20 - WARN - LSC configuration loaded from old properties file format ! juin 19 17:57:20 - DEBUG - Loading configuration url: file:/home/clement/tmp/lsc-ref/lsc.properties juin 19 17:57:21 - DEBUG - Loading XML configuration from: /home/clement/workspace/lsc-core-2.0/etc/lsc.xml juin 19 17:57:21 - INFO - Reflections took 286 ms to scan 1 urls, producing 182 keys and 325 values juin 19 17:57:21 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd juin 19 17:57:21 - INFO - Logging configuration successfully loaded from /home/clement/workspace/lsc-core-2.0/etc/logback.xml juin 19 17:57:21 - INFO - LSC configuration successfully loaded from /home/clement/workspace/lsc-core-2.0/etc/ juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up source service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up source service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up destination service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up destination service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up source service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up source service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up destination service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up destination service: pivotAttrs juin 19 17:57:21 - INFO - Logging configuration successfully loaded from /home/clement/workspace/lsc-core-2.0/etc/logback.xml juin 19 17:57:21 - INFO - LSC configuration successfully loaded from /home/clement/workspace/lsc-core-2.0/etc/ juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up source service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up source service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up destination service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up destination service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up source service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up source service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up source service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up source service: pivotAttrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterId juin 19 17:57:21 - WARN - Unhandled property to set up destination service: attrs juin 19 17:57:21 - WARN - Unhandled property to set up destination service: baseDn juin 19 17:57:21 - WARN - Unhandled property to set up destination service: filterAll juin 19 17:57:21 - WARN - Unhandled property to set up destination service: pivotAttrs juin 19 17:57:21 - INFO - Configuration file format successfully converted to /home/clement/tmp/lsc-ref/lsc.xml juin 19 17:57:21 - INFO - Configuration successfully converted ! </pre> The worse is that the converted configuration is not valid: <pre> clement@ader:~/tmp$ lsc-2.0-SNAPSHOT/bin/lsc -f lsc-ref/ -v juin 19 17:58:22 - DEBUG - Loading XML configuration from: /home/clement/tmp/lsc-ref/lsc.xml juin 19 17:58:22 - INFO - Reflections took 354 ms to scan 2 urls, producing 60 keys and 244 values juin 19 17:58:22 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd juin 19 17:58:22 - DEBUG - Importing XML schema file: schemas/lsc-nis-plugin-1.0.xsd juin 19 17:58:22 - ERROR - org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'propertiesBasedSyncOptions'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":cleanHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":syncHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":databaseSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":asyncLdapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginSourceService}' is expected.] org.lsc.exception.LscConfigurationException: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'propertiesBasedSyncOptions'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":cleanHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":syncHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":databaseSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":asyncLdapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginSourceService}' is expected.] at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:172) ~[lsc-core-2.0-SNAPSHOT.jar:na] at org.lsc.Configuration.setUp(Configuration.java:481) ~[lsc-core-2.0-SNAPSHOT.jar:na] at org.lsc.Launcher.run(Launcher.java:194) [lsc-core-2.0-SNAPSHOT.jar:na] at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.0-SNAPSHOT.jar:na] at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.0-SNAPSHOT.jar:na] Caused by: javax.xml.bind.UnmarshalException: null at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315) ~[na:1.6.0_26] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:503) ~[na:1.6.0_26] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:204) ~[na:1.6.0_26] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:173) ~[na:1.6.0_26] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137) ~[na:1.6.0_26] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142) ~[na:1.6.0_26] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:151) ~[na:1.6.0_26] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:169) ~[na:1.6.0_26] at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:170) ~[lsc-core-2.0-SNAPSHOT.jar:na] ... 4 common frames omitted Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'propertiesBasedSyncOptions'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":cleanHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":syncHook, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":databaseSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":ldapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":asyncLdapSourceService, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":pluginSourceService}' is expected. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:78) ~[na:1.6.0_26] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137) ~[na:1.6.0_26] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[apacheds-all-1.5.7.jar:na] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:200) ~[na:1.6.0_26] ... 10 common frames omitted juin 19 17:58:22 - INFO - Configuration validation failed ! </pre> -- 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

