Issue Type: Bug Bug
Affects Versions: 0.6
Assignee: Unassigned
Created: 11/Dec/12 5:14 AM
Description:

When adding an operationSelector to a camel.jms binding, switchyard.xml validation fails with exception :

java.lang.RuntimeException: Model [org.switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-complex-type.2.4.a: Invalid content was found starting with element 'selector:operationSelector.java'. One of '{"urn:switchyard-component-camel:config:1.0":username, "urn:switchyard-component-camel:config:1.0":password, "urn:switchyard-component-camel:config:1.0":clientId, "urn:switchyard-component-camel:config:1.0":durableSubscriptionName, "urn:switchyard-component-camel:config:1.0":concurrentConsumers, "urn:switchyard-component-camel:config:1.0":maxConcurrentConsumers, "urn:switchyard-component-camel:config:1.0":disableReplyTo, "urn:switchyard-component-camel:config:1.0":preserveMessageQos, "urn:switchyard-component-camel:config:1.0":deliveryPersistent, "urn:switchyard-component-camel:config:1.0":priority, "urn:switchyard-component-camel:config:1.0":explicitQosEnabled, "urn:switchyard-component-camel:config:1.0":replyTo, "urn:switchyard-component-camel:config:1.0":replyToType, "urn:switchyard-component-camel:config:1.0":requestTimeout, "urn:switchyard-component-camel:config:1.0":selector, "urn:switchyard-component-camel:config:1.0":timeToLive, "urn:switchyard-component-camel:config:1.0":transacted, "urn:switchyard-component-camel:config:1.0":transactionManager}' is expected.
	at org.switchyard.config.model.Validation.assertValid(Validation.java:78)
	at org.switchyard.config.model.BaseModel.assertModelValid(BaseModel.java:239)
	at org.switchyard.test.SwitchYardTestKit.createSwitchYardModel(SwitchYardTestKit.java:806)
	at org.switchyard.test.SwitchYardTestKit.<init>(SwitchYardTestKit.java:142)
	at org.switchyard.test.SwitchYardRunner.createTest(SwitchYardRunner.java:56)
	at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:236)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:233)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
	at org.switchyard.test.SwitchYardRunner.run(SwitchYardRunner.java:81)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'selector:operationSelector.java'. One of '{"urn:switchyard-component-camel:config:1.0":username, "urn:switchyard-component-camel:config:1.0":password, "urn:switchyard-component-camel:config:1.0":clientId, "urn:switchyard-component-camel:config:1.0":durableSubscriptionName, "urn:switchyard-component-camel:config:1.0":concurrentConsumers, "urn:switchyard-component-camel:config:1.0":maxConcurrentConsumers, "urn:switchyard-component-camel:config:1.0":disableReplyTo, "urn:switchyard-component-camel:config:1.0":preserveMessageQos, "urn:switchyard-component-camel:config:1.0":deliveryPersistent, "urn:switchyard-component-camel:config:1.0":priority, "urn:switchyard-component-camel:config:1.0":explicitQosEnabled, "urn:switchyard-component-camel:config:1.0":replyTo, "urn:switchyard-component-camel:config:1.0":replyToType, "urn:switchyard-component-camel:config:1.0":requestTimeout, "urn:switchyard-component-camel:config:1.0":selector, "urn:switchyard-component-camel:config:1.0":timeToLive, "urn:switchyard-component-camel:config:1.0":transacted, "urn:switchyard-component-camel:config:1.0":transactionManager}' is expected.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1812)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:731)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.jaxp.validation.StreamValidatorHelper.validate(StreamValidatorHelper.java:147)
	at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:111)
	at javax.xml.validation.Validator.validate(Validator.java:127)
	at org.switchyard.config.model.BaseModel.validateModel(BaseModel.java:224)
	... 25 more
Project: SwitchYard
Priority: Major Major
Reporter: Kostas Papageorgiou
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira