Dear community,

I'm trying to write some Java code and use it within a Camel route like

<bean ref="configurationStore" method="getConfiguration" />

The code looks like (simplified for testing purposes)

try {
        String json = "{\"CONFIGURATION\": \"hello\"}";

        log.info("json: " + json.toString());
        String config = JsonPath.read(json, "$.CONFIGURATION");
        log.info("config: " + config);
} catch (Exception e) {
        log.info("error: " + e.getMessage());
}

I'm getting the first log entry, the next one is a

org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: ...

No further log from the Java method.

Camel version is 2.16.2. within ServiceMix 7.0.0M1.

Same behaviour with Camel 2.15.5 inside ServiceMix 6.0.2.

Any ideas?

Best
- Gerald



--
View this message in context: 
http://camel.465427.n5.nabble.com/Execution-of-com-jayway-jsonpath-JsonPath-methods-fail-with-a-CamelExecutionException-tp5782403.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to