Hi You cannot use <handled> in <doCatch> as that is the point to handle the exception. You need to remove it.
On Tue, May 28, 2024 at 1:09 PM Bikash Kaushik <kaushikbikas...@gmail.com> wrote: > Hi Team, > > I'm doing camel migration from version 2.15.1 to 4.2.0. In older version > there is handle tag in exception block : > > <doCatch> > <exception>java.lang.Exception</exception> > > <handled> > <constant>false</constant> > </handled> > <log > message="X-Correlation-Id_${header.X-Correlation-Id} | > UserId_${header.RequestorId} | Exception occured"></log> > </doCatch> > > *But while upgrading it to Camel 4 getting below error :* > Caused by: org.apache.camel.xml.io.XmlPullParserLocationException: > Unexpected element '{http://camel.apache.org/schema/spring}handled' > in classpath:routes/camel-route.xml, line 885, column 26: > <handled> > > *Please help me in fixing this issue.* > > -- > > > *Regards,* > *Bikash Kaushik* > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2