camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <>
Subject What is the correct syntax for try/catch in camel spring DSL
Date Mon, 08 Jun 2009 11:34:29 GMT

I try the following syntax to do a try/catch in camel spring DSL :

                <camel:unmarshal ref="oinpCsvMessageToModel" />
                <camel:to ref="queueClientInEndpoint" />

                    <camel:to ref="queueReportingEndpoint" />


but I receive the following error :

*org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
68 in XML document from URL
[bundle://89.0:0/META-INF/spring/camel-context.xml] is invalid; nested
exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'camel:try'.* One of '{"":aggregate, "":bean, "":doCatch, "":when, "":choice, "":otherwise, "":convertBodyTo, "":delay, "":enrich, "":filter, "":doFinally, "":idempotentConsumer, "":inOnly, "":inOut, "":intercept, "":interceptFrom, "":interceptToEndpoint, "":loadBalance, "":loop, "":marshal, "":multicast, "":onCompletion, "":onException, "":pipeline, "":policy, "":process, "":recipientList, "":removeHeader, "":removeProperty, "":resequence, "":rollback, "":route, "":routingSlip, "":setBody, "":setExchangePattern, "":setHeader, "":setOutHeader, "":setProperty, "":sort, "":split, "":stop, "":threads, "":throttle, "":throwException, "":to, "":transacted, "":transform, "":doTry, "":unmarshal, "":wireTap}' is expected.

So what is the correct as the wiki page is different from schema definition!


Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

blog :

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message