Hi,

This generally means the stream was consumed already. You need cache the stream 
. Add streamCache="true" to the camelContext can simply fix it.
Take a look at [1] to get more details.

[1]http://camel.apache.org/stream-caching.html
Freeman
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-7-16, at 下午6:24, gumba wrote:

> <?xml version="1.0" encoding="UTF-8"?>
> <e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/";>
>  <e:Body>
>    <ping>
>      <pingRequest>
>        <message>
>               <method>startProcess</method>
>               <content>gpi</content>
>        </message>
>      </pingRequest>
>    </ping>
>  </e:Body>
> </e:Envelope>
> 
> 
> 
> <camelContext id="camelProcess"
> xmlns="http://camel.apache.org/schema/spring";>
>            <route>
>                       <from
> uri="jbi:endpoint:http://servicemix.apache.org/samples/bridge/pipeline/endpoint"/>
>               <choice>
>                       <when>
>                               <xpath>//method='startProcess'</xpath>
>                               <to uri="xslt:bridge.xslt"/>
>                               <to uri="bean:initiateProcess"/>
>                       </when>
>                       <otherwise>
>                               <to uri="file:/Users/folder"/>
>                       </otherwise>
>               </choice>
>            </route>
>      </camelContext>
> 
> I have this camel route, after I evaluate the XPath the message become empty
> and I get an error:
> "premature end of file" which means the file is empty and I proof that by
> redirecting it to a folder.
> What is wrong with my XPath expression?
> 
> -----
> Gumba
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/problem-in-content-based-routing-and-xpath-evaluation-SMX4-3-tp4638543p5713897.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to