Hello, Concerning the issue with the AdviceWith as mentioned in the attached mail: I somehow got confused with another issue, meaning, I guess my previous statement was wrong. The issue seems to be as follows:
The AdviceWith tasks seem to work fine in both cases, 4.4.0 and 4.7.0, when using these tasks from a lifecycle strategy, but when using these tasks from within a route template definition converter, then an exception occurs. final var converter = new RouteAdvisoryStrategy(context,environment); defaultContext.addRouteTemplateDefinitionConverter("*", converter); I do have a repo case, which throws that exception (but still continues to run Camel) upon applying AdviceWith tasks, run with mvn spring-boot:run. The code works fine with Camel 4.4.0, but fails with 4.7.0. (in case of running the repo case with 4.4.0 – I had to comment out getExchangeStatusTags in MetricsNamingStrategy). Due to company policies, I’m not allowed to send the code to the mailing list, thus I sent it already to Claus personally, but I’m not sure if Claus is currently available. In case anybody else might want to look at it, pls. let me know. We would be very glad if you can support us here. Thanks very much. Mit freundlichen Grüßen / Best Regards Andreas Klug Robert Bosch GmbH | Postfach 10 60 50 | 70049 Stuttgart | GERMANY | www.bosch.com<http://www.bosch.com/> Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; Aufsichtsratsvorsitzender: Prof. Dr. Stefan Asenkerschbaumer; Geschäftsführung: Dr. Stefan Hartung, Dr. Christian Fischer, Dr. Markus Forschner, Stefan Grosch, Dr. Markus Heyn, Dr. Frank Meyer, Dr. Tanja Rückert Von: Claus Ibsen <claus.ib...@gmail.com> Datum: Freitag, 12. Juli 2024 um 11:27 An: users@camel.apache.org <users@camel.apache.org> Betreff: Re: Camel 4.6.0: Issue with AdviceWithRouteBuilder Hi No but try with 4.7.0 when its released On Fri, Jul 12, 2024 at 11:14 AM Klug Andreas (BD/SWD-BEB5) <andreas.kl...@de.bosch.com.invalid> wrote: > Hello everyone, > > After migrating from 4.4.0 to 4.6.0 we experience a strange issue with the > AdviceWithRouteBuilder. > > We do have multiple AdviceWithTasks which are working in 4.4.0 and 4.6.0, > e. g. > > * weaveByToUri("micrometer:.*").before() > * weaveById("*").selectLast().before() > > However, using weaveAddFirst().before() or builder.weaveAddFirst().after() > won’t work starting from 4.6.0. > I double-checked that by weaving in pretty simple to identify statements > like > .log("************************************************************************************************") > and finding these statements in the route dump. > Even trying to mimic weaveAddFirst() by using > weaveById(“*”).selectFirst().before() or > weaveById(“*”).selectFirst().after() doesn’t seem to work. > > Do you have any suggestions? > > Best Regards, > Andreas > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&data=05%7C02%7CAndreas.Klug2%40de.bosch.com%7C8edefc9229d94a8e58fd08dca254e71c%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C638563732749221939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=oXjSsK0Ga%2BKJpuDoI46fJKgWr55Oqvxbo7py%2B5xjiEg%3D&reserved=0<https://www.manning.com/ibsen2>