Hi, great. Thanks for the quick fix.
-----Ursprüngliche Nachricht----- Von: Claus Ibsen <claus.ib...@gmail.com> Gesendet: Freitag, 11. April 2025 11:22 An: users@camel.apache.org Betreff: Re: OnExceptions clauses ignored since Camel 4.8.2 Hi Okay I found the problem was introduced with another fix for https://issues.apache.org/jira/browse/CAMEL-21475 On Fri, Apr 11, 2025 at 10:56 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > Thanks for the reproducer. > > So the onException is in use, its due to you are not setting handled = > true in the onException. > And its more of a change related to markRollbackOnly which is a > feature seldom used. Its also more intended for old school > JTA/JMS/JDBC transactions > > > > On Mon, Apr 7, 2025 at 2:49 PM Billah Farouk (BD/SWD-DOE4) > <farouk.bil...@bosch.com.invalid> wrote: > >> 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%2Fibsen2&data=05%7C02%7CFarouk.Billah%40bosch.com%7Cee55 >> 2d4089024d6c9b5808dd78da6c05%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7 >> C0%7C638799601679561410%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRyd >> WUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D% >> 3D%7C0%7C%7C%7C&sdata=XQ0wpO52rUlF2mABwI1r9VzR5bzQp9IOKQFlx7BWyi8%3D& >> reserved=0 >> >> >> 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 >> > >> > > > -- > Claus Ibsen > ----------------- > @davsclaus > Camel in Action 2: > https://www/. > manning.com%2Fibsen2&data=05%7C02%7CFarouk.Billah%40bosch.com%7Cee552d > 4089024d6c9b5808dd78da6c05%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0% > 7C638799601679580973%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsI > lYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C > 0%7C%7C%7C&sdata=XsWTNrVG6m%2B8YWODw3irhZSyreDMbPrIIW%2BsFkuL0Yw%3D&re > served=0 > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2