Hi,
Please help. Xpath throw exception "Premature end of file" as following
when the XML message has extra space or some other character in front. How
do I trim on it such as <transform><trim>${body}</trim></transform>?
Thanks. Justin
11:06:17,390 | ERROR | test | DefaultErrorHandler
| 91 - org.apache.camel.camel-core - 2.8.5 | Failed delivery for
exchangeId: ID-huhehaotehome1-3996-1372559195953-10-315. Exhausted after
delivery attempt: 1 caught: org.apache.camel.TypeConversionException: Error
during type conversion from type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: org.w3c.dom.Document with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream [ at ] d4dd2ddue
org.xml.sax.SAXParseException: Premature end of file.
org.apache.camel.TypeConversionException: Error during type conversion from
type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: org.w3c.dom.Document with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream [ at ] d4dd2ddue
org.xml.sax.SAXParseException: Premature end of file.
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:116)[91:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.core.osgi.OsgiTypeConverter.convertTo(OsgiTypeConverter.java:102)[152:org.apache.camel.camel-blueprint:2.8.5]
Please help. Xpath throw exception "Premature end of file" as following
when the XML message has extra space or some other character in front. How
do I trim on it such as <transform><trim>${body}</trim></transform>?
Thanks. Justin
11:06:17,390 | ERROR | test | DefaultErrorHandler
| 91 - org.apache.camel.camel-core - 2.8.5 | Failed delivery for
exchangeId: ID-huhehaotehome1-3996-1372559195953-10-315. Exhausted after
delivery attempt: 1 caught: org.apache.camel.TypeConversionException: Error
during type conversion from type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: org.w3c.dom.Document with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream [ at ] d4dd2ddue
org.xml.sax.SAXParseException: Premature end of file.
org.apache.camel.TypeConversionException: Error during type conversion from
type:
org.apache.camel.converter.stream.CachedOutputStream.WrappedInputStream to
the required type: org.w3c.dom.Document with value
org.apache.camel.converter.stream.CachedOutputStream$WrappedInputStream [ at ] d4dd2ddue
org.xml.sax.SAXParseException: Premature end of file.
at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:116)[91:org.apache.camel.camel-core:2.8.5]
at
org.apache.camel.core.osgi.OsgiTypeConverter.convertTo(OsgiTypeConverter.java:102)[152:org.apache.camel.camel-blueprint:2.8.5]