The error is always there no matter if I use this route : <camel:route> <camel:from ref="directRequestEndpoint"/> <camel:transacted ref="PROPAGATION_REQUIRED"/> <camel:doTry> <!-- Call the requestService to save the request --> <camel:bean ref="serviceHelper" method="createRequest"/> <!-- <camel:bean ref="serviceHelper" method="generateError" /> --> <camel:to ref="queueRequestEndpoint" /> <camel:doCatch>
<camel:exception>java.lang.Exception</camel:exception> <camel:rollback/> <camel:to ref="queueReportingEndpoint" /> </camel:doCatch> </camel:doTry> </camel:route> or this one <camel:route> <camel:from ref="directRequestEndpoint"/> <camel:transacted ref="PROPAGATION_REQUIRED"/> <camel:doTry> <!-- Call the requestService to save the request --> <camel:bean ref="serviceHelper" method="createRequest"/> <!-- <camel:bean ref="serviceHelper" method="generateError" /> --> <camel:to ref="queueRequestEndpoint" /> <camel:doCatch> <camel:exception>java.lang.Exception</camel:exception> <camel:to ref="queueReportingEndpoint" /> <camel:rollback/> </camel:doCatch> </camel:doTry> </camel:route> Strange. It was working beginning of this week. Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Thu, Jul 9, 2009 at 1:43 PM, Charles Moulliard <cmoulli...@gmail.com>wrote: > I will change my route and retest > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > > > On Thu, Jul 9, 2009 at 1:38 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > >> On Thu, Jul 9, 2009 at 1:11 PM, Charles Moulliard<cmoulli...@gmail.com> >> wrote: >> > Hi, >> > >> > The following camel route >> > >> > <camel:route> >> > <camel:from ref="directRequestEndpoint"/> >> > <camel:transacted ref="PROPAGATION_REQUIRED"/> >> > <camel:doTry> >> > <!-- Call the requestService to save the request --> >> > <camel:bean ref="serviceHelper" >> method="createRequest"/> >> > <camel:bean ref="serviceHelper" >> method="generateError" >> > /> >> > <camel:to ref="queueRequestEndpoint" /> >> > <camel:doCatch> >> > >> > >> <camel:exception>com.xpectis.x3s.exception.X3SException</camel:exception> >> > * <camel:rollback/>* >> > <camel:bean ref="serviceHelper" >> > method="processException"/> >> > <camel:to ref="queueReportingEndpoint" /> >> > </camel:doCatch> >> > </camel:doTry> >> > </camel:route> >> Why do you do a routing after the rollback? Rollback should be that last >> step. >> >> doCatch >> // do something >> // do something else >> rollback() >> >> >> >> >> > >> > generates an error at the line 42 of RollbackProcessor class : >> > >> > org.apache.camel.spring.spi.TransactedRuntimeCamelException: >> > org.apache.camel.RollbackExchangeException: null on the exchange: >> > Exchange[Message: com.xpectis.x3s.platform.model.requ...@8aa95f] >> > at >> > >> org.apache.camel.spring.spi.TransactionErrorHandler.wrapTransactedRuntimeException(TransactionErrorHandler.java:170) >> > at >> > >> org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:121) >> > >> > Is the parameter message of RollbackProcessor mandatory now ? >> > >> > Regards, >> > >> > Charles Moulliard >> > Senior Enterprise Architect >> > Apache Camel Committer >> > >> > ***************************** >> > blog : http://cmoulliard.blogspot.com >> > >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > >