You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/09/23 10:09:21 UTC

[GitHub] [camel-k-runtime] nicolaferraro commented on issue #500: Sink Kamelet not called

nicolaferraro commented on issue #500:
URL: https://github.com/apache/camel-k-runtime/issues/500#issuecomment-697267739


   I put another issue here, since it's related to the consumers.
   
   If I change the route to:
   
   ```groovy
   from('timer:tick')
     .setBody().constant('Hello 2')
     .log("calling kamelet ...")
     .to("kamelet:echo-sink")
     .to("kamelet:echo-sink?prefix=Hello+World+")
     .log('${body}')
   
   ```
   
   I.e. using the same kamelet twice, then I get an error on Camel startup:
   
   ```
   [2] Caused by: org.apache.camel.FailedToStartRouteException: Failed to start route echo-sink-3D791105940A899-0000000000000001 because of Multiple consumers for the same endpoint is not allowed: direct://%23property:routeId
   [2]     at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRouteConsumers(InternalRouteStartupManager.java:317)
   [2]     at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartRouteConsumers(InternalRouteStartupManager.java:282)
   [2]     at org.apache.camel.impl.engine.InternalRouteStartupManager.safelyStartRouteServices(InternalRouteStartupManager.java:181)
   [2]     at org.apache.camel.impl.engine.InternalRouteStartupManager.doStartOrResumeRoutes(InternalRouteStartupManager.java:115)
   [2]     at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2907)
   [2]     at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:2740)
   [2]     at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2703)
   [2]     at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
   [2]     at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2469)
   [2]     at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:75)
   [2]     at org.apache.camel.support.service.BaseService.start(BaseService.java:115)
   [2]     at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:120)
   [2]     at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
   [2]     ... 10 more
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org