camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Premature End Of File Error in XML
Date Mon, 27 Jun 2016 06:15:14 GMT
Hi

See this FAQ
http://camel.apache.org/why-is-my-message-body-empty.html

And next time use the @user mailing list / user forum - not dev.


On Mon, Jun 27, 2016 at 7:14 AM, Varsha167 <varsha.tiwari@target.com> wrote:
> I am trying to parse an XML file through a Camel Code. This is a portion of
> my Camel Code where I am parsing the XML :
>
>                  .to("http://abc.apt.com")
>                 .log("Response received - ${body}")
>                 .log(LoggingLevel.INFO, "UPCI Fetched")
>                 .convertBodyTo(String.class)
>              *   .to("xslt:xslt/FPFormatting.xsl")*
>                 //.marshal(xmlJsonFormat)
>                 .log(LoggingLevel.INFO, "response received ${body}")
>                 .end();
>
> The above code gives me an error :
> *
> 2016-06-24 17:27:26 WARN  o.a.c.component.seda.SedaConsumer - Error
> processing exchange. Exchange[][Message: ]. Caused by:
> [javax.xml.transform.TransformerException - ParseError at [row,col]:[1,1]
> Message: Premature end of file.]
> javax.xml.transform.TransformerException: ParseError at [row,col]:[1,1]
> Message: Premature end of file.*
>
> When executed individually, the XSLT (FPFormatting.xsl )is producing correct
> XML results. Only when I execute the code, it gives me the above error.
>
> I tried adding Saxon dependency in Gradle, tried converting the body to
> string, but this is not working.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Premature-End-Of-File-Error-in-XML-tp5784421.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message