The xpath expression evaluations should rest the cached stream 
---------------------------------------------------------------

                 Key: CAMEL-1337
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1337
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 1.5.0
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 2.0.0, 1.6.1


{code}
<route>
  <from uri="jetty:http://localhost:8084/services/simpleService"/>
    <choice>
     <when>
        <xpath>/sim:GetCapabilitiesRequest</xpath>
     </when>
     <when>
        <xpath>/sim:GetMetadataRequest</xpath>
     </when>
    </choice>
</route>
{code}

A messages that matches the first when statement (I tested with both the route 
above and a version where I swapped the two xpath statements to make sure it 
was not dependent on the actual message) throws no errors and a call that 
matches the second when statement throws the Premature end of file error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to