camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anish.somadevan" <netan...@gmail.com>
Subject Re: Issue with SetHeader / Xpath
Date Fri, 07 Aug 2015 17:01:07 GMT
I have a similar issue



My XML is 

<CamelData>
<Provider>ProviderValue</Provider>
</CamelData>

And am trying to set header value like this,

<SetHeader headerName = "Provider">
<xpath>/CamelData/Provider/text()</xpath>
</setHeader>

But i get this error.

Exhausted after delivery attempt: 1 caught: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to
org.apache.xml.dtm.DTMManager: java.lang.ClassCastException:
org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to
org.apache.xml.dtm.DTMManager 
        at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:137)
[xalan.jar:] 
        at org.apache.xpath.XPathContext.<init>(XPathContext.java:102)
[xalan.jar:] 
        at org.apache.xpath.XPathContext.<init>(XPathContext.java:349)
[xalan.jar:] 
        at
org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:113) 
        at
org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99) 

Is there something that am missing? 



--
View this message in context: http://camel.465427.n5.nabble.com/Issue-with-SetHeader-Xpath-tp5749368p5770441.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message