Hi folks,

> Am 28.03.2024 um 12:43 schrieb Gregor Zurowski <gre...@list.zurowski.org>:
> 
> 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.<init>(MicrometerRoutePolicy.java:88)
 
24611 at 
org.apache.camel.component.micrometer.routepolicy.ContextMetricsStatistics.<init>(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

Reply via email to