Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-790

Zookeeper document falsely describes that password paraterer can be set

    XMLWordPrintable

Details

    Description

      The Zookeeper component does not allow a password to be set. The Zookeeper document states it has the option password [1] which leads to confusion.

      Because when one tries to configure a route with the following kind of statement then it fails with exception:

      .to("zookeeper://localhost:2181/testP/testN?create=true&password=admin")

      Exception Observed:
      +++++++++++++++++++++++++++++++++++++++++
      Moving files from Dir file:src/data/inbox?delay=5000 to zookeeper://localhost:2181/testP/testN?create=true&password=admin
      Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[zookeeper://localhost:2181/testP/testN?create=true&password=admin] <<< in route: Route(route1)[[Fromfile:src/data/inbox?delay=5000] -> [To[... because of Failed to resolve endpoint: zookeeper://localhost:2181/testP/testN?create=true&password=admin due to: Failed to resolve endpoint: zookeeper://localhost:2181/testP/testN?create=true&password=admin 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=[

      {password=admin}]
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:883)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)
      at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:750)
      at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1829)
      at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1609)
      at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1478)
      at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1446)
      at my.camel.FileCopierWithCamel.main(Unknown Source)
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: zookeeper://localhost:2181/testP/testN?create=true&password=admin due to: Failed to resolve endpoint: zookeeper://localhost:2181/testP/testN?create=true&password=admin 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=[{password=admin}

      ]
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:508)
      at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:62)
      at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:191)
      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.SendDefinition.resolveEndpoint(SendDefinition.java:61)
      at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
      at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:479)
      at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:197)
      at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:880)
      ... 8 more
      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: zookeeper://localhost:2181/testP/testN?create=true&password=admin 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=[

      {password=admin}

      ]
      at org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:183)
      at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:133)
      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:488)
      ... 17 more
      Java Result: 1
      +++++++++++++++++++++++++++++++++++++++++

      [1] http://camel.apache.org/zookeeper.html

      Attachments

        Activity

          People

            cibsen@redhat.com Claus Ibsen
            jaysensharma Jay SenSharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: