You have a typo, it has to be "marshal" with one L Cheers,
On 17 September 2013 12:17, vsmahesh <[email protected]> wrote: > Hi .. > I am getting error when adding <marshall> tag to my route > my camel-context is given below > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <dataFormats> > <jaxb id="input" prettyPrint="true" > contextPath="xyz.pi.mes.id59.xxx" > > partClass="xxyy.pi.mes.id59.powerconsumption.yuyu" /> > > </dataFormats> > > <route id="MES_to_InboundQUEUE"> > <from uri="cxf:bean:abcd"/> > <marshall ref="input"/> > <to uri="activemq:queue:qname"/> > > </route> > > > </camelContext> > > > > The error is like > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 65 in XML document from URL > [bundle://526.12:0/META-INF/spring/camel-route.xml] is invalid; nested > exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:* > Invalid > content was found starting with element 'marshall'. *One of > '{"http://camel.apache.org/schema/spring":from, > "http://camel.apache.org/schema/spring":aop, > "http://camel.apache.org/schema/spring":aggregate, > "http://camel.apache.org/schema/spring":bean, > "http://camel.apache.org/schema/spring":doCatch, > "http://camel.apache.org/schema/spring":when, > "http://camel.apache.org/schema/spring":choice, > "http://camel.apache.org/schema/spring":otherwise, > "http://camel.apache.org/schema/spring":convertBodyTo, > "http://camel.apache.org/schema/spring":delay, > "http://camel.apache.org/schema/spring":dynamicRouter, > "http://camel.apache.org/schema/spring":enrich, > "http://camel.apache.org/schema/spring":filter, > "http://camel.apache.org/schema/spring":doFinally, > "http://camel.apache.org/schema/spring":idempotentConsumer, > "http://camel.apache.org/schema/spring":inOnly, > "http://camel.apache.org/schema/spring":inOut, > "http://camel.apache.org/schema/spring":intercept, > "http://camel.apache.org/schema/spring":interceptFrom, > "http://camel.apache.org/schema/spring":interceptToEndpoint, > "http://camel.apache.org/schema/spring":loadBalance, > "http://camel.apache.org/schema/spring":log, > "http://camel.apache.org/schema/spring":loop, > "http://camel.apache.org/schema/spring":marshal, > "http://camel.apache.org/schema/spring":multicast, > "http://camel.apache.org/schema/spring":onCompletion, > "http://camel.apache.org/schema/spring":onException, > "http://camel.apache.org/schema/spring":pipeline, > "http://camel.apache.org/schema/spring":policy, > "http://camel.apache.org/schema/spring":pollEnrich, > "http://camel.apache.org/schema/spring":process, > "http://camel.apache.org/schema/spring":recipientList, > "http://camel.apache.org/schema/spring":removeHeader, > "http://camel.apache.org/schema/spring":removeHeaders, > "http://camel.apache.org/schema/spring":removeProperty, > "http://camel.apache.org/schema/spring":resequence, > "http://camel.apache.org/schema/spring":rollback, > "http://camel.apache.org/schema/spring":route, > "http://camel.apache.org/schema/spring":routingSlip, > "http://camel.apache.org/schema/spring":sample, > "http://camel.apache.org/schema/spring":setBody, > "http://camel.apache.org/schema/spring":setExchangePattern, > "http://camel.apache.org/schema/spring":setFaultBody, > "http://camel.apache.org/schema/spring":setHeader, > "http://camel.apache.org/schema/spring":setOutHeader, > "http://camel.apache.org/schema/spring":setProperty, > "http://camel.apache.org/schema/spring":sort, > "http://camel.apache.org/schema/spring":split, > "http://camel.apache.org/schema/spring":stop, > "http://camel.apache.org/schema/spring":threads, > "http://camel.apache.org/schema/spring":throttle, > "http://camel.apache.org/schema/spring":throwException, > "http://camel.apache.org/schema/spring":to, > "http://camel.apache.org/schema/spring":transacted, > "http://camel.apache.org/schema/spring":transform, > "http://camel.apache.org/schema/spring":doTry, > "http://camel.apache.org/schema/spring":unmarshal, > "http://camel.apache.org/schema/spring":validate, > "http://camel.apache.org/schema/spring":wireTap}' is expected. > at > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[104:org.springframework.context:3.0.7.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[104:org.springframework.context:3.0.7.RELEASE] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[113:org.springframework.osgi.extender:1.2.1] > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[113:org.springframework.osgi.extender:1.2.1] > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[114:org.springframework.osgi.core:1.2.1] > at > > org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[113:org.springframework.osgi.extender:1.2.1] > at java.lang.Thread.run(Unknown Source)[:1.6.0_45] > Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid > content was found starting with element 'marshall'. One of > '{"http://camel.apache.org/schema/spring":from, > "http://camel.apache.org/schema/spring":aop, > "http://camel.apache.org/schema/spring":aggregate, > "http://camel.apache.org/schema/spring":bean, > "http://camel.apache.org/schema/spring":doCatch, > "http://camel.apache.org/schema/spring":when, > "http://camel.apache.org/schema/spring":choice, > "http://camel.apache.org/schema/spring":otherwise, > "http://camel.apache.org/schema/spring":convertBodyTo, > "http://camel.apache.org/schema/spring":delay, > "http://camel.apache.org/schema/spring":dynamicRouter, > "http://camel.apache.org/schema/spring":enrich, > "http://camel.apache.org/schema/spring":filter, > "http://camel.apache.org/schema/spring":doFinally, > "http://camel.apache.org/schema/spring":idempotentConsumer, > "http://camel.apache.org/schema/spring":inOnly, > "http://camel.apache.org/schema/spring":inOut, > "http://camel.apache.org/schema/spring":intercept, > "http://camel.apache.org/schema/spring":interceptFrom, > "http://camel.apache.org/schema/spring":interceptToEndpoint, > "http://camel.apache.org/schema/spring":loadBalance, > "http://camel.apache.org/schema/spring":log, > "http://camel.apache.org/schema/spring":loop, > "http://camel.apache.org/schema/spring":marshal, > "http://camel.apache.org/schema/spring":multicast, > "http://camel.apache.org/schema/spring":onCompletion, > "http://camel.apache.org/schema/spring":onException, > "http://camel.apache.org/schema/spring":pipeline, > "http://camel.apache.org/schema/spring":policy, > "http://camel.apache.org/schema/spring":pollEnrich, > "http://camel.apache.org/schema/spring":process, > "http://camel.apache.org/schema/spring":recipientList, > "http://camel.apache.org/schema/spring":removeHeader, > "http://camel.apache.org/schema/spring":removeHeaders, > "http://camel.apache.org/schema/spring":removeProperty, > "http://camel.apache.org/schema/spring":resequence, > "http://camel.apache.org/schema/spring":rollback, > "http://camel.apache.org/schema/spring":route, > "http://camel.apache.org/schema/spring":routingSlip, > "http://camel.apache.org/schema/spring":sample, > "http://camel.apache.org/schema/spring":setBody, > "http://camel.apache.org/schema/spring":setExchangePattern, > "http://camel.apache.org/schema/spring":setFaultBody, > "http://camel.apache.org/schema/spring":setHeader, > "http://camel.apache.org/schema/spring":setOutHeader, > "http://camel.apache.org/schema/spring":setProperty, > "http://camel.apache.org/schema/spring":sort, > "http://camel.apache.org/schema/spring":split, > "http://camel.apache.org/schema/spring":stop, > "http://camel.apache.org/schema/spring":threads, > "http://camel.apache.org/schema/spring":throttle, > "http://camel.apache.org/schema/spring":throwException, > "http://camel.apache.org/schema/spring":to, > "http://camel.apache.org/schema/spring":transacted, > "http://camel.apache.org/schema/spring":transform, > "http://camel.apache.org/schema/spring":doTry, > "http://camel.apache.org/schema/spring":unmarshal, > "http://camel.apache.org/schema/spring":validate, > "http://camel.apache.org/schema/spring":wireTap}' is expected. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source)[:] > at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown > Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source)[:] > at > > org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown > Source)[:] > at > org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown > Source)[:] > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > Source)[:] > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown > Source)[:] > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source)[:] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source)[:] > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source)[:] > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:] > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:] > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown > Source)[:] > at > > org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[105:org.springframework.beans:3.0.7.RELEASE] > at > > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[105:org.springframework.beans:3.0.7.RELEASE] > ... 18 more > > Kindly help me in resolving the issue. > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Getting-the-error-Invalid-content-was-found-starting-with-element-marshall-tp5739639.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Bilgin Ibryam Apache Camel & Apache OFBiz committer Blog: ofbizian.com Twitter: @bibryam <https://twitter.com/bibryam> Author of Instant Apache Camel Message Routing packtpub.com/apache-camel-message-routing/book<http://www.packtpub.com/apache-camel-message-routing/book>
