camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varsha167 <>
Subject Premature End Of File Error in XML
Date Mon, 27 Jun 2016 05:14:39 GMT
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 :

                .log("Response received - ${body}")
                .log(LoggingLevel.INFO, "UPCI Fetched")
             *   .to("xslt:xslt/FPFormatting.xsl")*
                .log(LoggingLevel.INFO, "response received ${body}")

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:
Sent from the Camel Development mailing list archive at

View raw message