org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[rabbitmq://localhost:15672?queue=hello] <<< in route: Route(route1)[[From[file://target/?fileName=doctor.txt&chars... because of Failed to resolve endpoint: rabbitmq://localhost:15672?queue=hello due to: No URI path as the exchangeName for the RabbitMQEndpoint, the URI is rabbitmq://localhost:15672?queue=hello

Stack Overflow | coder006 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Apache camel write to rabbitmq

    Stack Overflow | 9 months ago | coder006
    org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[rabbitmq://localhost:15672?queue=hello] <<< in route: Route(route1)[[From[file://target/?fileName=doctor.txt&chars... because of Failed to resolve endpoint: rabbitmq://localhost:15672?queue=hello due to: No URI path as the exchangeName for the RabbitMQEndpoint, the URI is rabbitmq://localhost:15672?queue=hello

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No URI path as the exchangeName for the RabbitMQEndpoint, the URI is rabbitmq://localhost:15672?queue=hello

      at org.apache.camel.component.rabbitmq.RabbitMQComponent.createEndpoint()
    2. Camel :: RabbitMQ
      RabbitMQComponent.createEndpoint
      1. org.apache.camel.component.rabbitmq.RabbitMQComponent.createEndpoint(RabbitMQComponent.java:50)
      2. org.apache.camel.component.rabbitmq.RabbitMQComponent.createEndpoint(RabbitMQComponent.java:31)
      2 frames
    3. Camel :: Core
      DefaultCamelContext.start
      1. org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:122)
      2. org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:525)
      3. org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
      4. org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:202)
      5. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
      6. org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
      7. org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
      8. org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
      9. org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:500)
      10. org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213)
      11. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:942)
      12. org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:187)
      13. org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:794)
      14. org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2184)
      15. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1916)
      16. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1777)
      17. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      18. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1745)
      18 frames
    4. test
      RMQCamelSender.main
      1. test.RMQCamelSender.main(RMQCamelSender.java:38)
      1 frame