Zookeeper does not allow a password paraterer to be set
Issue
- While using the Zookeeper URL
.to("zookeeper://localhost:2181/testpath/testnode?create=true&password=admin")
with"password"
as a parameter then it throws the following error:
Moving files from Dir file:src/data/inbox?delay=5000 to zookeeper://localhost:2181/somepath/somenode?create=true&password=admin
Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> To[zookeeper://localhost:2181/somepath/somenode?create=true&password=admin] <<< in route: Route(route1)[[From[file:src/data/inbox?delay=5000]] -> [To[... because of Failed to resolve endpoint: zookeeper://localhost:2181/somepath/somenode?create=true&password=admin due to: Failed to resolve endpoint: zookeeper://localhost:2181/somepath/somenode?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/somepath/somenode?create=true&password=admin due to: Failed to resolve endpoint: zookeeper://localhost:2181/somepath/somenode?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/somepath/somenode?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
Environment
- Red Hat JBoss Fuse
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.