Camel v3.7.0 running under Spring-Boot v2.4.1

To reproduce:

Create route.
Issue a HealthCheckSupport#checkAll <- works fine

Adapt context to SpringCamelContext and use that to suspend the route.
 
SpringCamelContext ecc = context.adapt(SpringCamelContext.class);
ecc.suspendRoute(route);

Issue a HealthCheckSupport#checkAll <- fails

Exception is as follows
java.lang.IllegalArgumentException: Response State must be specified
        at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:151) 
~[camel-util-3.7.0.jar:3.7.0]
        at 
org.apache.camel.impl.health.AbstractHealthCheck.call(AbstractHealthCheck.java:163)
 ~[camel-health-3.7.0.jar:3.7.0]
…

builder.state() is indeed null.

Not sure how to get past this, but think it’s a bug.




Reply via email to