AWS-SQS client throws exception org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint.

Solution Verified - Updated -

Issue

  • I am trying to connect via the camel component "camel-aws" to the Amazon SQS queue.I am using the following camel code:
<from uri="aws-sqs://?accessKey=&amp;secretKey=&amp;region=us-east-1&amp;delay=&amp;waitTimeSeconds=&amp;maxMessagesPerPoll=5&amp;attributeNames=All" /> 
  • The access key and secret key are correct because I have tested their via a client java.But, when I deploy the component I get the following error
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-sqs://test_queue?accessKey=XYZattributeNames=All&delay=1&maxMessagesPerPoll=5&secretKey=ABC&waitTimeSeconds=1 due to: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

The Canonical String for this request should have been
'POST
/

amz-sdk-invocation-id:1234Test
amz-sdk-retry:3/1200/
host:LMN.com
user-agent:TEST
x-amz-date:20160615T180428Z


Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-sqs://test_queue?accessKey=XYZattributeNames=All&delay=1&maxMessagesPerPoll=5&secretKey=ABC&waitTimeSeconds=1 due to: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

The Canonical String for this request should have been
'POST
/

amz-sdk-invocation-id:6789Test
amz-sdk-retry:3/1200/
host:Test.com
user-agent:Test
x-amz-date:20160615T180428Z

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content