Skip to content

Dev mode continuous testing app fails when camel-quarkus-management is present #7522

@jamesnetherton

Description

@jamesnetherton

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.

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.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions