Hi

Yeah some setters is missing on this. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-6796

On Sat, Sep 28, 2013 at 12:20 PM, atiato <omar.a...@its.ws> wrote:
> Dear Clause,,
>
> it raises the below error when using small letter.
>
> <to
>
> uri="xmlsecurity:sign://enveloped?keyAccessor=#accessorRsa&amp;addKeyInfoReference=true&amp;transformMethods=#NoCommTrans&amp;contentObjectId=Body"
> />
>
>                         <convertBodyTo type="String" />
>
> pom.xml :
>
> <dependency>
>     <groupId>org.apache.camel</groupId>
>     <artifactId>camel-xmlsecurity</artifactId>
>     <version>${camel.version}</version>
>
> </dependency>
>
> <camel.version>2.12.1</camel.version>
>
> I think we have to Open JIRA for this and for the error when when setting
> the header CamelXmlSignatureContentReferenceUri which I explained in the
> previous messages.
>
> Kindly find below stack error when using small letter contentObjectId :
>
>
> *************************************
> Error occurred while running main from: org.apache.camel.spring.Main
> java.lang.reflect.InvocationTargetException
>         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:601)
>         at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:416)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.camel.RuntimeCamelException:
> org.apache.camel.FailedToCreateRouteException: Failed to create route route1
> at: >>>
> To[xmlsecurity:sign://enveloped?keyAccessor=#accessorRsa&addKeyInfoReference=true&transformMethods=#NoCommTrans&contentObjectId=Body]
> <<< in route:
> Route(route1)[[From[mina:tcp://0.0.0.0:8899?textline=true&mi... because of
> Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> due to: Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> 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=[{contentObjectId=Body}]*
>         at
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1344)
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
>         at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:301)
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
>         at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
>         at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>         at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
>         at
> org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:186)
>         at org.apache.camel.spring.Main.doStart(Main.java:140)
>         at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
>         at org.apache.camel.main.MainSupport.run(MainSupport.java:343)
>         at org.apache.camel.spring.Main.main(Main.java:73)
>         ... 6 more
> Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
> route route1 at: >>>
> To[xmlsecurity:sign://enveloped?keyAccessor=#accessorRsa&addKeyInfoReference=true&transformMethods=#NoCommTrans&contentObjectId=Body]
> <<< in route:
> Route(route1)[[From[mina:tcp://0.0.0.0:8899?textline=true&mi... because of
> Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> due to: Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> 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=[{contentObjectId=Body}]
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:912)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:177)
>         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.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
>         at 
> org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
>         at
> org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1512)
>         at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
>         ... 19 more
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> due to: Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> 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=[{contentObjectId=Body}]
>         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.SendDefinition.resolveEndpoint(SendDefinition.java:61)
>         at
> org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
>         at
> org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:500)
>         at
> org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:213)
>         at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:909)
>         ... 29 more
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> 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=[{contentObjectId=Body}]
>         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)
>         ... 38 more
> *************************************
> [INFO] Total time: 24.905s
> [INFO] Finished at: Sat Sep 28 13:09:50 EEST 2013
> [INFO] Final Memory: 26M/63M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.9.0:run
> (default-cli) on project TABS2NTHLR: null: MojoExecutionException:
> InvocationTargetException: org.apache.camel.FailedToCreateRouteException:
> Failed to create route route1 at: >>>
> To[xmlsecurity:sign://enveloped?keyAccessor=#accessorRsa&addKeyInfoReference=true&transformMethods=#NoCommTrans&contentObjectId=Body]
> <<< in route:
> Route(route1)[[From[mina:tcp://0.0.0.0:8899?textline=true&mi... because of
> Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> due to: Failed to resolve endpoint:
> xmlsecurity://sign://enveloped?addKeyInfoReference=true&contentObjectId=Body&keyAccessor=%23accessorRsa&transformMethods=%23NoCommTrans
> 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=[{contentObjectId=Body}] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [                      Thread-1] MainSupport$HangupInterceptor  INFO
> Received hang up - stopping the main instance.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/contentObjectId-in-XML-Security-camel-xmlsecurity-tp5740265p5740348.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to