You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/02/13 03:22:59 UTC

[jira] Created: (CAMEL-1337) The xpath expression evaluations should rest the cached stream

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.


[jira] Resolved: (CAMEL-1337) The xpath expression evaluations should rest the cached stream

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1337.
---------------------------------

    Resolution: Fixed

trunk
http://svn.apache.org/viewvc?rev=743959&view=rev
http://svn.apache.org/viewvc?rev=743960&view=rev

1.x branch
http://svn.apache.org/viewvc?rev=743964&view=rev

> 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.


[jira] Commented: (CAMEL-1337) The xpath expression evaluations should rest the cached stream

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49419#action_49419 ] 

Willem Jiang commented on CAMEL-1337:
-------------------------------------

Also committed a fix for XqureyBuilder.

> 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.