You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alan Atkinson <al...@hotmail.com> on 2021/01/08 18:35:02 UTC

Issue with camel-health

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.