2 Replies Latest reply on Jan 25, 2012 3:37 AM by sekaijin

    [ERROR]Could not extract IN message body javax.xml.transform.Source

    sekaijin

      happy New Year

       

       

      I have a route that produces xml that I send to an xslt

      ...

      .marshal().xstream("UTF-8")

      .convertBodyTo(String.class)

      .to("xslt:phe/phe2piv.xsl")

      ...[/code]

       

      in the traces, I see that the body is a String

      ....Exchange[ExchangePattern:InOnly,

      BodyType:String,

      Body:<?xml version='1.0' encoding='UTF-8'?><fr.phe.Reservation>....[/code]

       

      but I get the error

      16:29:08,507 | ERROR | hedra_converter] | DefaultErrorHandler              | 90 - org.apache.camel.camel-core - 2.8.0.fuse-01-06 | Failed delivery for exchangeId: ID-SAP5001620-3542-1325511001233-22-1. Exhausted after delivery attempt: 1 caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN message body as type: interface javax.xml.transform.Source body is: <?xml version='1.0' encoding='UTF-8'?><fr.phe.Reservation>...[/code]

       

      I'm running apache-servicemix-4.4.1-fuse-01-06

      my route is defined by camel camel-blueprint

       

      A+JYT

      PS: sorry for my approximative english

       

      Edited by: sekaijin on Jan 2, 2012 5:39 PM