Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11109

Failed to resolve endpoint when using destination.consumer.exclusive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.16.5, 2.17.6, 2.18.3
    • Fix Version/s: None
    • Component/s: camel-jms
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The queue below will fail with the EexceptionesolveEndpointFailedException: Failed to resolve endpoint

      Route:
      from("jms:queue:queue1?destination.consumer.exclusive=true").to("log:test");

      Full exception:
      Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[jms:queue:queue1?destination.consumer.ex... because of Failed to resolve endpoint: jms://queue:queue1?destination.consumer.exclusive=true due to: Failed to resolve endpoint: jms://queue:queue1?destination.consumer.exclusive=true due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[

      {destination.consumer.exclusive=true}]
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:201)
      at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:984)
      at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3401)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3132)
      at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:183)
      at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2961)
      at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2957)
      at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2980)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2957)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2924)
      at test.Starter.main(Starter.java:17)
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jms://queue:queue1?destination.consumer.exclusive=true due to: Failed to resolve endpoint: jms://queue:queue1?destination.consumer.exclusive=true due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{destination.consumer.exclusive=true}

      ]
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:623)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
      at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
      at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:69)
      at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1051)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
      ... 11 more
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jms://queue:queue1?destination.consumer.exclusive=true due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[

      {destination.consumer.exclusive=true}

      ]
      at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:183)
      at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:125)
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:603)
      ... 19 more

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: