camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varsha167 <varsha.tiw...@target.com>
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 :

                 .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.

Mime
View raw message