Hello,

I have an issue similar to one described at the bottom of
https://issues.apache.org/jira/browse/CAMEL-3277
I'm using Camel 2.7.0 with ServiceMix, and a spring-DSL-based Camel context
with one Java bean.

A route reads messages (requests) from Jetty http endpoint, then a couple of
Xpath expressions follows. When I place a call to a Java bean method between
them, which perform just simple
String body = exchange.getIn().getBody(String.class);
then the Xpath expression that follows it (the second expression) fails with
an error: "java.lang.ClassCastException:
org.apache.camel.converter.stream.InputStreamCache cannot be cast to
org.w3c.dom.Node"

I will post additional details tomorrow including the stacktrace, but maybe
I just need to reset the InputStreamCache after the bean method completes?
Or should I be able to read the message body multiple times without any
special actions?

Igor

--
View this message in context: 
http://camel.465427.n5.nabble.com/ClassCastException-org-apache-camel-converter-stream-InputStreamCache-cannot-be-cast-to-org-w3c-dom-e-tp5053112p5053112.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to