Re: [ANNOUNCE] Apache Camel 4.5.0 Released
Hi Yeah it seems SB does not inject CamelContext eager on those route policy factory and the metrics uses the camel context to get its name https://issues.apache.org/jira/browse/CAMEL-20628 On Thu, Mar 28, 2024 at 3:04 PM Alphonse Bendt wrote: > Hi folks, > > > Am 28.03.2024 um 12:43 schrieb Gregor Zurowski >: > > > > The Camel PMC is pleased to announce the release of Apache Camel 4.5.0. > > just tried out to update one of our projects from 4.4.1 to 4.5.0 > > (current SpringBoot version, using JUnit5 based tests) > > With the update a number of tests start to fail (stacktrace [1]). Are > there any breaking changes we need to be aware of in the new version? > didn’t see anything mentioned in the release notes. > > > [1] > org.apache.camel.FailedToCreateRouteException: Failed to create route XXX: > Route(XXX)[From[direct:XXX] -> [DoTry[... because of Cannot invoke > "org.apache.camel.CamelContext.getName()" because "camelContext" is null > 24587 at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:85) > 24588 at > org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) > > 24589 at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:728) > > 24590 at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:594) > > 24591 at > org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2391) > > 24592 at > org.apache.camel.support.service.BaseService.init(BaseService.java:78) > 24593 at > org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2027) > > 24594 at > org.apache.camel.support.service.BaseService.start(BaseService.java:105) > 24595 at > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2046) > > 24596 at > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:212) > > 24597 at > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:119) > > 24598 at > org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.lambda$handleCamelContextStartup$1(CamelAnnotationsHandler.java:403) > > 24599 at > org.apache.camel.test.spring.junit5.CamelSpringTestHelper.doToSpringCamelContexts(CamelSpringTestHelper.java:108) > > 24600 at > org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.handleCamelContextStartup(CamelAnnotationsHandler.java:400) > > 24601 at > org.apache.camel.test.spring.junit5.CamelSpringBootExecutionListener.beforeTestMethod(CamelSpringBootExecutionListener.java:105) > > 24602 at > org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:320) > > 24603 at > org.springframework.test.context.junit.jupiter.SpringExtension.beforeEach(SpringExtension.java:240) > > 24604 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) > 24605 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) > 24606Caused by: java.lang.NullPointerException: Cannot invoke > "org.apache.camel.CamelContext.getName()" because "camelContext" is null > 24607 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyNamingStrategy.getExchangeStatusTags(MicrometerRoutePolicyNamingStrategy.java:112) > > 24608 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.createCounter(MicrometerRoutePolicy.java:214) > > 24609 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.initAdditionalCounters(MicrometerRoutePolicy.java:94) > > 24610 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.(MicrometerRoutePolicy.java:88) > > 24611 at > org.apache.camel.component.micrometer.routepolicy.ContextMetricsStatistics.(ContextMetricsStatistics.java:33) > > 24612 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyFactory.createOrGetContextMetric(MicrometerRoutePolicyFactory.java:115) > > 24613 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy.onInit(MicrometerRoutePolicy.java:299) > > 24614 at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:352) > 24615 at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:79) > 24616 ... 18 more -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
Re: [ANNOUNCE] Apache Camel 4.5.0 Released
Hi, there were cleanups on deprecated internal APIs. They are described on the migration guide along with further migration details: https://camel.apache.org/manual/camel-4x-upgrade-guide-4_5.html On Thu, Mar 28, 2024 at 3:02 PM Alphonse Bendt wrote: > Hi folks, > > > Am 28.03.2024 um 12:43 schrieb Gregor Zurowski >: > > > > The Camel PMC is pleased to announce the release of Apache Camel 4.5.0. > > just tried out to update one of our projects from 4.4.1 to 4.5.0 > > (current SpringBoot version, using JUnit5 based tests) > > With the update a number of tests start to fail (stacktrace [1]). Are > there any breaking changes we need to be aware of in the new version? > didn’t see anything mentioned in the release notes. > > > [1] > org.apache.camel.FailedToCreateRouteException: Failed to create route XXX: > Route(XXX)[From[direct:XXX] -> [DoTry[... because of Cannot invoke > "org.apache.camel.CamelContext.getName()" because "camelContext" is null > 24587 at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:85) > 24588 at > org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) > > 24589 at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:728) > > 24590 at > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:594) > > 24591 at > org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2391) > > 24592 at > org.apache.camel.support.service.BaseService.init(BaseService.java:78) > 24593 at > org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2027) > > 24594 at > org.apache.camel.support.service.BaseService.start(BaseService.java:105) > 24595 at > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2046) > > 24596 at > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:212) > > 24597 at > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:119) > > 24598 at > org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.lambda$handleCamelContextStartup$1(CamelAnnotationsHandler.java:403) > > 24599 at > org.apache.camel.test.spring.junit5.CamelSpringTestHelper.doToSpringCamelContexts(CamelSpringTestHelper.java:108) > > 24600 at > org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.handleCamelContextStartup(CamelAnnotationsHandler.java:400) > > 24601 at > org.apache.camel.test.spring.junit5.CamelSpringBootExecutionListener.beforeTestMethod(CamelSpringBootExecutionListener.java:105) > > 24602 at > org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:320) > > 24603 at > org.springframework.test.context.junit.jupiter.SpringExtension.beforeEach(SpringExtension.java:240) > > 24604 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) > 24605 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) > 24606Caused by: java.lang.NullPointerException: Cannot invoke > "org.apache.camel.CamelContext.getName()" because "camelContext" is null > 24607 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyNamingStrategy.getExchangeStatusTags(MicrometerRoutePolicyNamingStrategy.java:112) > > 24608 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.createCounter(MicrometerRoutePolicy.java:214) > > 24609 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.initAdditionalCounters(MicrometerRoutePolicy.java:94) > > 24610 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.(MicrometerRoutePolicy.java:88) > > 24611 at > org.apache.camel.component.micrometer.routepolicy.ContextMetricsStatistics.(ContextMetricsStatistics.java:33) > > 24612 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyFactory.createOrGetContextMetric(MicrometerRoutePolicyFactory.java:115) > > 24613 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy.onInit(MicrometerRoutePolicy.java:299) > > 24614 at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:352) > 24615 at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:79) > 24616 ... 18 more -- Otavio R. Piske http://orpiske.net
Re: [ANNOUNCE] Apache Camel 4.5.0 Released
Hi folks, > Am 28.03.2024 um 12:43 schrieb Gregor Zurowski : > > The Camel PMC is pleased to announce the release of Apache Camel 4.5.0. just tried out to update one of our projects from 4.4.1 to 4.5.0 (current SpringBoot version, using JUnit5 based tests) With the update a number of tests start to fail (stacktrace [1]). Are there any breaking changes we need to be aware of in the new version? didn’t see anything mentioned in the release notes. [1] org.apache.camel.FailedToCreateRouteException: Failed to create route XXX: Route(XXX)[From[direct:XXX] -> [DoTry[... because of Cannot invoke "org.apache.camel.CamelContext.getName()" because "camelContext" is null 24587 at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:85) 24588 at org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) 24589 at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:728) 24590 at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:594) 24591 at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2391) 24592 at org.apache.camel.support.service.BaseService.init(BaseService.java:78) 24593 at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2027) 24594 at org.apache.camel.support.service.BaseService.start(BaseService.java:105) 24595 at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2046) 24596 at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:212) 24597 at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:119) 24598 at org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.lambda$handleCamelContextStartup$1(CamelAnnotationsHandler.java:403) 24599 at org.apache.camel.test.spring.junit5.CamelSpringTestHelper.doToSpringCamelContexts(CamelSpringTestHelper.java:108) 24600 at org.apache.camel.test.spring.junit5.CamelAnnotationsHandler.handleCamelContextStartup(CamelAnnotationsHandler.java:400) 24601 at org.apache.camel.test.spring.junit5.CamelSpringBootExecutionListener.beforeTestMethod(CamelSpringBootExecutionListener.java:105) 24602 at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:320) 24603 at org.springframework.test.context.junit.jupiter.SpringExtension.beforeEach(SpringExtension.java:240) 24604 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) 24605 at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) 24606Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.camel.CamelContext.getName()" because "camelContext" is null 24607 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyNamingStrategy.getExchangeStatusTags(MicrometerRoutePolicyNamingStrategy.java:112) 24608 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.createCounter(MicrometerRoutePolicy.java:214) 24609 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.initAdditionalCounters(MicrometerRoutePolicy.java:94) 24610 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy$MetricsStatistics.(MicrometerRoutePolicy.java:88) 24611 at org.apache.camel.component.micrometer.routepolicy.ContextMetricsStatistics.(ContextMetricsStatistics.java:33) 24612 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyFactory.createOrGetContextMetric(MicrometerRoutePolicyFactory.java:115) 24613 at org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy.onInit(MicrometerRoutePolicy.java:299) 24614 at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:352) 24615 at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:79) 24616 ... 18 more
[ANNOUNCE] Apache Camel 4.5.0 Released
The Camel PMC is pleased to announce the release of Apache Camel 4.5.0. Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. This release contains 151 new features and improvements. The release is available for immediate download at: https://camel.apache.org/download/ For more details please take a look at the release notes at: https://camel.apache.org/releases/release-4.5.0/