camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From catshout <gerald.kal...@web.de>
Subject Execution of com.jayway.jsonpath.JsonPath methods fail with a CamelExecutionException
Date Tue, 10 May 2016 11:41:31 GMT
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.

Mime
View raw message