camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From justin chen <justinchen...@gmail.com>
Subject Help. how to trim the body using Spring XML
Date Sun, 30 Jun 2013 03:34:22 GMT
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@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@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]

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message