You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2012/09/10 16:18:07 UTC

[jira] [Resolved] (CAMEL-5535) Multiple restlet routes of the same restlet URI but different VERBs does not work in Apache Camel 2.10.0 , both routes work in Apache Camel 2.9.1.

     [ https://issues.apache.org/jira/browse/CAMEL-5535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-5535.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.2
                   2.11.0
                   2.9.4

Applied the patch into trunk, camel-2.9.x and camel-2.10.x branches.
                
> Multiple restlet routes of the same restlet URI but different VERBs does not work in Apache Camel 2.10.0 , both routes work in Apache Camel 2.9.1.  
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5535
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5535
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-restlet
>    Affects Versions: 2.10.0
>            Reporter: Amit Patel
>            Assignee: Willem Jiang
>             Fix For: 2.9.4, 2.11.0, 2.10.2
>
>
> Multiple restlet routes of the same restlet URI but different VERBs does not work in Apache Camel 2.10.0 , both routes work in Apache Camel 2.9.1.  
> Reproduce Steps:
> -----------------
> 1) Add a restlet route with a from uri of restlet:///nimbus/hello.restlet/1.0?restletMethods=get
> <route xmlns="http://camel.apache.org/schema/spring" trace="true" >
>       <from uri="restlet:///nimbus/hello.restlet/1.0?restletMethods=get"/>
>     <transform>
>       <simple>Hello Restlet Method: ${header.CamelHttpMethod}  ID:${header.id}</simple>
>     </transform>
>   </route>
> 2) Add a restlet route with a from uri of restlet:///nimbus/hello.restlet/1.0?restletMethods=post
>    <route xmlns="http://camel.apache.org/schema/spring" trace="true" >
>       <from uri="restlet:///nimbus/hello.restlet/1.0?restletMethods=post"/>
>     <transform>
>       <simple>Hello Restlet Method: ${header.CamelHttpMethod}  ID:${header.id}</simple>
>     </transform>
>   </route>
> 3)  route 1work fine, but #2 results in the following exception. both route work fine in Camel 2.9.1.
> Exception:
> 012-07-27 10:29:20,646-0400 ERROR grails.app.service.nimbus.ComputeService localhost addRoute for hello.restletpost failed - Failed to start route nimbus.hello.restletpost.1.0 because of Multiple consumers for the same endpoint is not allowed: Endpoint[/nimbus/hello.restlet/1.0]
>  Caused by: org.apache.camel.FailedToStartRouteException: Failed to start route nimbus.hello.restletpost.1.0 because of Multiple consumers for the same endpoint is not allowed: Endpoint[/nimbus/hello.restlet/1.0]
>  at org.apache.camel.impl.DefaultCamelContext(doStartOrResumeRouteConsumers:1993) 
> I've already posted on 
> http://camel.465427.n5.nabble.com/Apache-Camel-2-10-0-multiple-restlet-routes-of-the-same-restlet-URI-but-different-VERBs-does-not-work-td5716556.html
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira