1 2 Previous Next 16 Replies Latest reply on Nov 8, 2011 4:49 PM by rchallapalli

    Camel XSL transformation error.. bit wierd

    rchallapalli

      Hi,

      I am using Camel xslt:.. for transoformation of the input xml before it goes to the destination queue. My camel route is as follows...

       

      from(inputUri).routeId("inboundToCsfRequest")

      .log("Input message: $") .to("xslt:input-req-processor.xsl") .log("Transformed message: $")

       

      org.apache.camel.ExpectedBodyTypeException: Could not extract IN message body as type: interface javax.xml.transform.Source

       

      I tried using .convertBodyTo(String.class).to("xslt:input-req-processor.xsl") and got the same error.. Then tried .convertBodyTo(javax.xml.transform.stream.StreamSource.class).to("xslt:input-req-processor.xsl")... got the same exception

       

       

      org.apache.camel.ExpectedBodyTypeException: Could not extract IN message body as type: interface javax.xml.transform.Source body is: javax.xml.transform.stream.StreamSource@7209 which is what it expected..?? but throws an exception yet...

       

      Anybody encoutered this error?

      Please help..

       

      Thanks in advance!

       

      ravi.

        1 2 Previous Next