-
1. Re: org.xml.sax.SAXParseException: Premature end of file
ffang Apr 27, 2010 9:50 AM (in response to bagavathysivaraman)Hi,
This exception generally means the inputstream is empty (somehow consumed already). But without more details about your usecase, we can't exactly know what happened.
Freeman
-
2. Re: org.xml.sax.SAXParseException: Premature end of file
njiang Apr 27, 2010 8:29 PM (in response to bagavathysivaraman)If you are using Camel 2.x, the stream cache is disabled.
You need to enable it to avoid this kind of error.
-
3. Re: org.xml.sax.SAXParseException: Premature end of file
bagavathysivaraman Apr 28, 2010 9:44 AM (in response to njiang)Hi Willem,
I am using Camel1.6.
I have been facing this particular exception for the past 2 months.
Please provide the solution.
Hope your solution drive me better.
Thanks and Regards,
Bagavathy
p.s.:
I did google search for stream chache enable. But it says 'In Camel 1.x stream cache is default enabled out of the box.'
Please refer http://camel.apache.org/stream-caching.html
Edited by: bagavathysivaraman on Apr 28, 2010 1:42 PM
-
4. Re: org.xml.sax.SAXParseException: Premature end of file
njiang Apr 28, 2010 8:30 PM (in response to bagavathysivaraman)Can I have a look at your camel route?
It's really hard to tell what's wrong with your camel route just from the stack trace.
Willem
-
5. Re: org.xml.sax.SAXParseException: Premature end of file
davsclaus Apr 29, 2010 12:07 AM (in response to bagavathysivaraman)You can convert the XML payload to String which should allow Camel to be able to read it
from("xxx") .convertBodyTo(String.class) .to("yyy") .to("zzz");