jamesnetherton opened a new issue, #7522:
URL: https://github.com/apache/camel-quarkus/issues/7522

   After tests complete, you get:
   
   ```
    java.lang.NullPointerException: Cannot invoke 
"org.apache.camel.spi.ManagementNameStrategy.isFixedName()" because "strategy" 
is null
           at 
org.apache.camel.management.JmxManagementLifecycleStrategy.findFreeName(JmxManagementLifecycleStrategy.java:282)
           at 
org.apache.camel.management.JmxManagementLifecycleStrategy.onContextStarting(JmxManagementLifecycleStrategy.java:202)
   ```
   
   It's due to `CamelContext.getManagementNameStrategy()` returning `null`. 
Which we do explicitly 
[here](https://github.com/apache/camel-quarkus/blob/4aefe5bafaabdba8d48579a65022595ee821868d/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/FastCamelContext.java#L89-L92).
   
   We should set up the `ManagementNameStrategy` in the `management` extension 
so that it's not `null`. It's probably just luck that we have not had other 
scenarios where this issue has occurred in the past.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to