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 >