Re: Camel 3.0.0 Failed to start route route because of Multiple consumers for the same endpoint is not allowed

2020-03-24 Thread Ranabroto Ghosh
Hi Aymen,

For me issue was with using multiple camel context. Define your rest end
points using rest dsl in the same camel context where you have your camel
routes. So this is not a bug thus womt be resolved.

On Tue, 24 Mar 2020, 20:04 Aymen Furter,  wrote:

> Hi,
>
> I am having this exact behavior on Camel 3.1.0.
>
> @Ranabroto Ghosh: Did moving to 3.1.0 fix this issue for you?
>
> Cheers
> Aymen
>
> Am Do., 12. März 2020 um 14:52 Uhr schrieb Claus Ibsen <
> claus.ib...@gmail.com>:
>
>> Try with Camel 3.1.0
>>
>> On Thu, Mar 12, 2020 at 2:25 PM Ranabroto Ghosh
>>  wrote:
>> >
>> > Hi I am having this clueless problem
>> > *pom.xml: *
>> > 
>> > org.springframework.boot
>> > spring-boot-starter-web
>> > 
>> > 
>> >org.apache.camel.springboot
>> > camel-spring-boot-starter
>> >3.0.0
>> > 
>> > 
>> > org.apache.camel
>> > camel-jetty
>> > 3.0.0
>> > 
>> >
>> > *REST XML : *
>> > http://camel.apache.org/schema/spring;>
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> > *CAMEL ROUTE:*
>> > 
>> > 
>> >
>> >
>> >
>> >
>> > 200
>> > 
>> >  
>> >
>> > *EXCEPTION:*
>> > 2020-03-12 13:17:12,623 spring-ec2 INFO [main] SpringCamelContext:
>> Route:
>> > route1 started and consuming from: jetty:
>> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>> > 2020-03-12 13:17:12,625 spring-ec2 INFO [main] SpringCamelContext:
>> Route:
>> > route-test started and consuming from: direct://test
>> > 2020-03-12 13:17:12,627 spring-ec2 INFO [main] SpringCamelContext:
>> Apache
>> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutting
>> down
>> > 2020-03-12 13:17:12,628 spring-ec2 INFO [main] DefaultShutdownStrategy:
>> > Starting to graceful shutdown 2 routes (timeout 300 seconds)
>> > 2020-03-12 13:17:12,634 spring-ec2 INFO [Camel
>> > (charge-process-fonix-context) thread #1 - ShutdownTask]
>> > DefaultShutdownStrategy: Route: route-test shutdown complete, was
>> consuming
>> > from: direct://test
>> > 2020-03-12 13:17:12,639 spring-ec2 INFO [Camel
>> > (charge-process-fonix-context) thread #1 - ShutdownTask]
>> AbstractConnector:
>> > Stopped ServerConnector@26275b46{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
>> > 2020-03-12 13:17:12,642 spring-ec2 INFO [Camel
>> > (charge-process-fonix-context) thread #1 - ShutdownTask] ContextHandler:
>> > Stopped o.e.j.s.ServletContextHandler@274fdea6{/,null,UNAVAILABLE}
>> > 2020-03-12 13:17:12,644 spring-ec2 INFO [Camel
>> > (charge-process-fonix-context) thread #1 - ShutdownTask]
>> > DefaultShutdownStrategy: Route: route1 shutdown complete, was consuming
>> > from: jetty:
>> http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>> > 2020-03-12 13:17:12,644 spring-ec2 INFO [main] DefaultShutdownStrategy:
>> > Graceful shutdown of 2 routes completed in 0 seconds
>> > 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext:
>> Apache
>> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) uptime 0.484
>> > seconds
>> > 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext:
>> Apache
>> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutdown in
>> > 0.029 seconds
>> > 2020-03-12 13:17:12,658 spring-ec2 ERROR [main] SpringCamelContext:
>> Error
>> > starting CamelContext (charge-process-fonix-context) due to exception
>> > thrown: Failed to start route route2 because of Multiple consumers for
>> the
>> > same endpoint is not allowed: jetty:
>> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>> >
>> > org.apache.camel.FailedToStartRouteException: Failed to start route
>> route2
>> > because of Multiple consumers for the same endpoint is not allowed:
>> jetty:
>> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>> >
>> >
>> > Not having this problem using camel version less than 3.0.0 is there a
>> bug
>> > in version 3 or above ?
>> >
>> >
>> >
>> > --
>> > Kind Regards
>> > Rana
>>
>>
>>
>> --
>> Claus Ibsen
>> -
>> http://davsclaus.com @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>>
>


Re: Camel 3.0.0 Failed to start route route because of Multiple consumers for the same endpoint is not allowed

2020-03-24 Thread Aymen Furter
Hi,

I am having this exact behavior on Camel 3.1.0.

@Ranabroto Ghosh: Did moving to 3.1.0 fix this issue for you?

Cheers
Aymen

Am Do., 12. März 2020 um 14:52 Uhr schrieb Claus Ibsen <
claus.ib...@gmail.com>:

> Try with Camel 3.1.0
>
> On Thu, Mar 12, 2020 at 2:25 PM Ranabroto Ghosh
>  wrote:
> >
> > Hi I am having this clueless problem
> > *pom.xml: *
> > 
> > org.springframework.boot
> > spring-boot-starter-web
> > 
> > 
> >org.apache.camel.springboot
> > camel-spring-boot-starter
> >3.0.0
> > 
> > 
> > org.apache.camel
> > camel-jetty
> > 3.0.0
> > 
> >
> > *REST XML : *
> > http://camel.apache.org/schema/spring;>
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > *CAMEL ROUTE:*
> > 
> > 
> >
> >
> >
> >
> > 200
> > 
> >  
> >
> > *EXCEPTION:*
> > 2020-03-12 13:17:12,623 spring-ec2 INFO [main] SpringCamelContext: Route:
> > route1 started and consuming from: jetty:
> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> > 2020-03-12 13:17:12,625 spring-ec2 INFO [main] SpringCamelContext: Route:
> > route-test started and consuming from: direct://test
> > 2020-03-12 13:17:12,627 spring-ec2 INFO [main] SpringCamelContext: Apache
> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutting down
> > 2020-03-12 13:17:12,628 spring-ec2 INFO [main] DefaultShutdownStrategy:
> > Starting to graceful shutdown 2 routes (timeout 300 seconds)
> > 2020-03-12 13:17:12,634 spring-ec2 INFO [Camel
> > (charge-process-fonix-context) thread #1 - ShutdownTask]
> > DefaultShutdownStrategy: Route: route-test shutdown complete, was
> consuming
> > from: direct://test
> > 2020-03-12 13:17:12,639 spring-ec2 INFO [Camel
> > (charge-process-fonix-context) thread #1 - ShutdownTask]
> AbstractConnector:
> > Stopped ServerConnector@26275b46{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
> > 2020-03-12 13:17:12,642 spring-ec2 INFO [Camel
> > (charge-process-fonix-context) thread #1 - ShutdownTask] ContextHandler:
> > Stopped o.e.j.s.ServletContextHandler@274fdea6{/,null,UNAVAILABLE}
> > 2020-03-12 13:17:12,644 spring-ec2 INFO [Camel
> > (charge-process-fonix-context) thread #1 - ShutdownTask]
> > DefaultShutdownStrategy: Route: route1 shutdown complete, was consuming
> > from: jetty:http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> > 2020-03-12 13:17:12,644 spring-ec2 INFO [main] DefaultShutdownStrategy:
> > Graceful shutdown of 2 routes completed in 0 seconds
> > 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) uptime 0.484
> > seconds
> > 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
> > Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutdown in
> > 0.029 seconds
> > 2020-03-12 13:17:12,658 spring-ec2 ERROR [main] SpringCamelContext: Error
> > starting CamelContext (charge-process-fonix-context) due to exception
> > thrown: Failed to start route route2 because of Multiple consumers for
> the
> > same endpoint is not allowed: jetty:
> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> >
> > org.apache.camel.FailedToStartRouteException: Failed to start route
> route2
> > because of Multiple consumers for the same endpoint is not allowed:
> jetty:
> > http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> >
> >
> > Not having this problem using camel version less than 3.0.0 is there a
> bug
> > in version 3 or above ?
> >
> >
> >
> > --
> > Kind Regards
> > Rana
>
>
>
> --
> Claus Ibsen
> -
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>


Re: Camel 3.0.0 Failed to start route route because of Multiple consumers for the same endpoint is not allowed

2020-03-12 Thread Claus Ibsen
Try with Camel 3.1.0

On Thu, Mar 12, 2020 at 2:25 PM Ranabroto Ghosh
 wrote:
>
> Hi I am having this clueless problem
> *pom.xml: *
> 
> org.springframework.boot
> spring-boot-starter-web
> 
> 
>org.apache.camel.springboot
> camel-spring-boot-starter
>3.0.0
> 
> 
> org.apache.camel
> camel-jetty
> 3.0.0
> 
>
> *REST XML : *
> http://camel.apache.org/schema/spring;>
> 
> 
> 
> 
> 
> 
>
> *CAMEL ROUTE:*
> 
> 
>
>
>
>
> 200
> 
>  
>
> *EXCEPTION:*
> 2020-03-12 13:17:12,623 spring-ec2 INFO [main] SpringCamelContext: Route:
> route1 started and consuming from: jetty:
> http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> 2020-03-12 13:17:12,625 spring-ec2 INFO [main] SpringCamelContext: Route:
> route-test started and consuming from: direct://test
> 2020-03-12 13:17:12,627 spring-ec2 INFO [main] SpringCamelContext: Apache
> Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutting down
> 2020-03-12 13:17:12,628 spring-ec2 INFO [main] DefaultShutdownStrategy:
> Starting to graceful shutdown 2 routes (timeout 300 seconds)
> 2020-03-12 13:17:12,634 spring-ec2 INFO [Camel
> (charge-process-fonix-context) thread #1 - ShutdownTask]
> DefaultShutdownStrategy: Route: route-test shutdown complete, was consuming
> from: direct://test
> 2020-03-12 13:17:12,639 spring-ec2 INFO [Camel
> (charge-process-fonix-context) thread #1 - ShutdownTask] AbstractConnector:
> Stopped ServerConnector@26275b46{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
> 2020-03-12 13:17:12,642 spring-ec2 INFO [Camel
> (charge-process-fonix-context) thread #1 - ShutdownTask] ContextHandler:
> Stopped o.e.j.s.ServletContextHandler@274fdea6{/,null,UNAVAILABLE}
> 2020-03-12 13:17:12,644 spring-ec2 INFO [Camel
> (charge-process-fonix-context) thread #1 - ShutdownTask]
> DefaultShutdownStrategy: Route: route1 shutdown complete, was consuming
> from: jetty:http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
> 2020-03-12 13:17:12,644 spring-ec2 INFO [main] DefaultShutdownStrategy:
> Graceful shutdown of 2 routes completed in 0 seconds
> 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
> Camel 3.0.0 (CamelContext: charge-process-fonix-context) uptime 0.484
> seconds
> 2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
> Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutdown in
> 0.029 seconds
> 2020-03-12 13:17:12,658 spring-ec2 ERROR [main] SpringCamelContext: Error
> starting CamelContext (charge-process-fonix-context) due to exception
> thrown: Failed to start route route2 because of Multiple consumers for the
> same endpoint is not allowed: jetty:
> http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>
> org.apache.camel.FailedToStartRouteException: Failed to start route route2
> because of Multiple consumers for the same endpoint is not allowed: jetty:
> http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
>
>
> Not having this problem using camel version less than 3.0.0 is there a bug
> in version 3 or above ?
>
>
>
> --
> Kind Regards
> Rana



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Camel 3.0.0 Failed to start route route because of Multiple consumers for the same endpoint is not allowed

2020-03-12 Thread Ranabroto Ghosh
Hi I am having this clueless problem
*pom.xml: *

org.springframework.boot
spring-boot-starter-web


   org.apache.camel.springboot
camel-spring-boot-starter
   3.0.0


org.apache.camel
camel-jetty
3.0.0


*REST XML : *
http://camel.apache.org/schema/spring;>







*CAMEL ROUTE:*


   
   
   
   
200

 

*EXCEPTION:*
2020-03-12 13:17:12,623 spring-ec2 INFO [main] SpringCamelContext: Route:
route1 started and consuming from: jetty:
http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
2020-03-12 13:17:12,625 spring-ec2 INFO [main] SpringCamelContext: Route:
route-test started and consuming from: direct://test
2020-03-12 13:17:12,627 spring-ec2 INFO [main] SpringCamelContext: Apache
Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutting down
2020-03-12 13:17:12,628 spring-ec2 INFO [main] DefaultShutdownStrategy:
Starting to graceful shutdown 2 routes (timeout 300 seconds)
2020-03-12 13:17:12,634 spring-ec2 INFO [Camel
(charge-process-fonix-context) thread #1 - ShutdownTask]
DefaultShutdownStrategy: Route: route-test shutdown complete, was consuming
from: direct://test
2020-03-12 13:17:12,639 spring-ec2 INFO [Camel
(charge-process-fonix-context) thread #1 - ShutdownTask] AbstractConnector:
Stopped ServerConnector@26275b46{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
2020-03-12 13:17:12,642 spring-ec2 INFO [Camel
(charge-process-fonix-context) thread #1 - ShutdownTask] ContextHandler:
Stopped o.e.j.s.ServletContextHandler@274fdea6{/,null,UNAVAILABLE}
2020-03-12 13:17:12,644 spring-ec2 INFO [Camel
(charge-process-fonix-context) thread #1 - ShutdownTask]
DefaultShutdownStrategy: Route: route1 shutdown complete, was consuming
from: jetty:http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST
2020-03-12 13:17:12,644 spring-ec2 INFO [main] DefaultShutdownStrategy:
Graceful shutdown of 2 routes completed in 0 seconds
2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
Camel 3.0.0 (CamelContext: charge-process-fonix-context) uptime 0.484
seconds
2020-03-12 13:17:12,656 spring-ec2 INFO [main] SpringCamelContext: Apache
Camel 3.0.0 (CamelContext: charge-process-fonix-context) is shutdown in
0.029 seconds
2020-03-12 13:17:12,658 spring-ec2 ERROR [main] SpringCamelContext: Error
starting CamelContext (charge-process-fonix-context) due to exception
thrown: Failed to start route route2 because of Multiple consumers for the
same endpoint is not allowed: jetty:
http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST

org.apache.camel.FailedToStartRouteException: Failed to start route route2
because of Multiple consumers for the same endpoint is not allowed: jetty:
http://0.0.0.0:8081/api/notification?httpMethodRestrict=POST


Not having this problem using camel version less than 3.0.0 is there a bug
in version 3 or above ?



-- 
Kind Regards
Rana