You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by yirco <ne...@yahoo.com> on 2013/09/18 22:22:12 UTC

Re: adding Bindings to Endpoints...

Hi,

is binding intended to work with URI parameters? e.g.:

from("binding:myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer")

It throws the org.apache.camel.ResolveEndpointFailedException

it seems that org.apache.camel.impl.DefaultComponent validates the
parameters and they are not known for the BindingEndpoint. But the parameter
shall be validated for the cxfrs not for binding.

Thank you for reply.

Yirco

            // if endpoint is strict (not lenient) and we have unknown
parameters configured then
            // fail if there are parameters that could not be set, then they
are probably misspell or not supported at all
            if (!endpoint.isLenientProperties()) {
                validateParameters(uri, parameters, null);
            }

org.apache.camel.FailedToCreateRouteException: Failed to create route
messaging: Route(messaging)[[From[binding:myBin... because of Failed to
resolve endpoint:
binding://myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer due to:
Failed to resolve endpoint:
binding://myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer 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=[{bindingStyle=SimpleConsumer}]
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:182)
	at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:770)
	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1670)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1544)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1512)
	at
org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177)
	at
org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:122)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
binding://myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer due to:
Failed to resolve endpoint:
binding://myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer 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=[{bindingStyle=SimpleConsumer}]
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:528)
	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:63)
	at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:192)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
	at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
	at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:890)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
	... 35 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
binding://myBinding:cxfrs:bean:rsServer?bindingStyle=SimpleConsumer 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=[{bindingStyle=SimpleConsumer}]
	at
org.apache.camel.impl.DefaultComponent.validateParameters(DefaultComponent.java:189)
	at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:134)
	at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:508)
	... 43 more



--
View this message in context: http://camel.465427.n5.nabble.com/adding-Bindings-to-Endpoints-tp5721292p5739781.html
Sent from the Camel Development mailing list archive at Nabble.com.