You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/02/11 10:04:00 UTC
[jira] [Commented] (CAMEL-14462) Camel-Blueprint: Endpoint
parameters not recognized
[ https://issues.apache.org/jira/browse/CAMEL-14462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034317#comment-17034317 ]
Claus Ibsen commented on CAMEL-14462:
-------------------------------------
On karaf 4.2.8 with camel 3.1 then this blueprint xml file works for me
{code}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route id="hello">
<from uri="timer:foo?period=1s"/>
<log message="Hello world"/>
</route>
</camelContext>
</blueprint>
{code}
> Camel-Blueprint: Endpoint parameters not recognized
> ---------------------------------------------------
>
> Key: CAMEL-14462
> URL: https://issues.apache.org/jira/browse/CAMEL-14462
> Project: Camel
> Issue Type: Bug
> Components: camel-aws, camel-blueprint
> Reporter: Andrea Cosentino
> Assignee: Guillaume Nodet
> Priority: Major
> Fix For: 3.1.0
>
>
> I was testing aws-translate in camel-blueprint with a stupid route like this one:
> {code:java}
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
> http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
> <camelContext xmlns="http://camel.apache.org/schema/blueprint" id="aws-translate">
> <route id="aws">
> <from uri="timer:name?repeatCount=5" />
> <to uri="aws-translate:test?accessKey=RAW(xxxx)&secretKey=RAW(xxxx)&region=eu-west-1"/>
> <log message="Receiving body ${body}" />
> </route>
> </camelContext>
> </blueprint>{code}
> In the component we have a check for having a client or accessKey and secretKey set, the error I'm getting is the following
> {code:java}
> org.apache.camel.FailedToCreateRouteException: Failed to create route aws at: >>> To[aws-translate:test?accessKey=RAW(xxxx)&secretKey=RAW(xxxx)®ion=eu-west-1] <<< in route: Route(aws)[From[timer:name?repeatCount=5] -> [To[aws-transla... because of Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxxx)®ion=eu-west-1&secretKey=xxxxxx due to: Amazon translate client or accessKey and secretKey must be specified
> {code}
> Then I tried to remove the check and use a modified version of the component, at that point, the options are completely not recognized.
> {code:java}
> [To[aws-transla... because of Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxxx)®ion=eu-west-1&secretKey=xxxxxx due to: Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxx)®ion=eu-west-1&secretKey=xxxxxx due to: There are 3 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=[{accessKey=xxxx, region=eu-west-1, secretKey=xxxx}]
> {code}
> It looks like there is something wrong while building the configuration and setting the properties on endpoint.
> cc [~davsclaus] [~gnodet]
> I tested only with camel-aws components, but it may be with others too
--
This message was sent by Atlassian Jira
(v8.3.4#803005)