Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14462

Camel-Blueprint: Endpoint parameters not recognized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: camel-aws, camel-blueprint
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I was testing aws-translate in camel-blueprint with a stupid route like this one:

      <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>

      In the component we have a check for having a client or accessKey and secretKey set, the error I'm getting is the following

      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
      

      Then I tried to remove the check and use a modified version of the component, at that point, the options are completely not recognized.

      [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}]
      
      

      It looks like there is something wrong while building the configuration and setting the properties on endpoint.

      cc Claus Ibsen Guillaume Nodet

      I tested only with camel-aws components, but it may be with others too

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              acosentino Andrea Cosentino
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: