Converting body to String did the job. Thank you!
--
View this message in context:
http://camel.465427.n5.nabble.com/Inject-multiple-JsonPath-parameters-to-bean-method-tp5782825p5782833.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Claus,
Thank your for very quick response. Unfortunately, stream caching didn't
help - it just changed the exception type.
I've enabled stream caching on CamelContext level, and set spool threshold
to 1 (just to see what will happen). The message body is cached and spooled
to disk:
2016.05.20 1
Hi guys,
I have a problem injecting multiple @JsonPath arguments using bean binding.
Here is my sample json:
{"key1":"val1","key2":"val2"}
My bean method processing that JSON:
@Handler
public void process(@JsonPath("$.key1") String value1, @JsonPath("$.key2")
String value2) {
System.out.prin