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 | 6 months ago
  1. 0

    Apache camel write to rabbitmq

    Stack Overflow | 6 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
  2. 0
    URI part of the request contains invalid characters. You may try to encode the path from the URI. Check RFC7230 and RFC3986 documentation below. https://www.ietf.org/rfc/rfc3986.txt and https://tools.ietf.org/html/rfc7230
  3. 0
    Properties of subclasses may have to be referenced in a different way. More on this here: https://goo.gl/FvnBXb
    via goo.gl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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