Hi, here I attached a repro case.
When specifying camel 4.8.1 and spring-boot 3.3.4, maven test succeeds. When switching to camel 4.8.2 and spring-boot 3.3.5 (and any future releases), maven test fails. Regards Farouk -----Ursprüngliche Nachricht----- Von: Claus Ibsen <claus.ib...@gmail.com> Gesendet: Samstag, 5. April 2025 14:33 An: users@camel.apache.org Betreff: Re: OnExceptions clauses ignored since Camel 4.8.2 Hi Yes you are welcome to provide a sample project that is easy to try to help Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2 On Thu, 3 Apr 2025 at 21.00, Billah Farouk (BD/SWD-DOE4) <farouk.bil...@bosch.com.invalid> wrote: > Hi, > > The issue is still present in 4.10.3 and 4.11.0. Is anyone else facing > the same? > > I can provide a repro case if someone wants to take a look at it. > > Regards > Farouk > > -----Ursprüngliche Nachricht----- > Von: Billah Farouk (BD/SWD-DOE4) <farouk.bil...@bosch.com.INVALID> > Gesendet: Donnerstag, 27. März 2025 21:11 > An: users@camel.apache.org > Betreff: OnExceptions clauses ignored since Camel 4.8.2 > > Hello, > > we have noticed a strange behavior beginning from Camel 4.8.2 > concerning the Exception Handling: routes, that are created based on a > route template, ignore completely the OnException clauses. > > routeTemplate("onexceptionreprotemplate") > .templateParameter("source") > .templateParameter("target") > .from("{{source}}") > .onException(Exception.class) > .log(LoggingLevel.ERROR, "Exception was thrown") > .markRollbackOnly() > .end() > .log(LoggingLevel.INFO, "Starting the route") > .to("{{target}}") > .log(LoggingLevel.INFO, "Message sent"); > > In Camel 4.8.1 and above, if the {{target}} throws an exception, the > steps inside the OnException are executed. This doesn't happen > starting from Camel 4.8.2. The route acts as if no OnException clause is > defined. > > Routes, not created based on templates, are not impacted by the > behavior above. Steps inside the OnException are executed also in > versions >= than > 4.8.2 > > Could that be a bug introduced in 4.8.2 for routeTemplates > > Regards > Farouk >
<<attachment: bugrepro.zip>>