You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2020/01/30 09:44:00 UTC

[jira] [Created] (CAMEL-14462) Camel-Blueprint: Endpoint parameters not recognized

Andrea Cosentino created CAMEL-14462:
----------------------------------------

             Summary: 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
    Affects Versions: 3.0.0, 3.0.1
            Reporter: Andrea Cosentino
            Assignee: Grzegorz Grzybek


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)&amp;secretKey=RAW(xxxx)&amp;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)&region=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)&region=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)&region=eu-west-1&secretKey=xxxxxx due to: Failed to resolve endpoint: aws-translate://test?accessKey=RAW(xxx)&region=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)