Issue #449 has been updated by Sébastien Bahloul. Status changed from Assigned to Feedback % Done changed from 100 to 90
Can you confirm Clement ? ---------------------------------------- Bug #449: lsc validate returns success even if configuration is bad http://tools.lsc-project.org/issues/449 Author: Clément OUDOT Status: Feedback Priority: Normal Assigned to: Sébastien Bahloul Category: Core Target version: 2.0 Problem in version: 2.0rc2 If I check my configuration with: <pre> lsc -v </pre> It returns success even if the configuration is bad: <pre> clement@ader:~/tmp/lsc-2.0-SNAPSHOT$ bin/lsc -v avr. 23 18:16:02 - DEBUG - Loading XML configuration from: /home/clement/tmp/lsc-2.0-SNAPSHOT/bin/../etc/lsc.xml avr. 23 18:16:02 - 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 'requestNameForList'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForNextId, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForClean}' 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 'requestNameForList'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForNextId, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForClean}' is expected.] at org.lsc.configuration.JaxbXmlConfigurationHelper.getConfiguration(JaxbXmlConfigurationHelper.java:153) ~[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:151) ~[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 'requestNameForList'. One of '{"http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForNextId, "http://lsc-project.org/XSD/lsc-core-2.0.xsd":requestNameForClean}' 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 avr. 23 18:16:02 - INFO - Configuration and environment successfully checked ! clement@ader:~/tmp/lsc-2.0-SNAPSHOT$ echo $? 0 </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

