[ 
https://issues.apache.org/jira/browse/CAMEL-12647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-12647.
--------------------------------------
    Resolution: Fixed

> Problem in setting region for camel AWS-SQS endpoint
> ----------------------------------------------------
>
>                 Key: CAMEL-12647
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12647
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.21.1
>            Reporter: Saravanakumar Selvaraj
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 2.21.2, 2.22.1, 2.23.0
>
>
> It gives FailedToCreateRouteException while creating camel AWS-SQS endpoint 
> with ARN.
> For example, below producer or consumer endpoint is not being created.
> {code:java}
> uri="aws-sqs://arn:aws:sqs:us-east-2:account:MyQueue?accessKey=xxx&secretKey=yyy&region=US_EAST_2"{code}
> And it throws error as follows.
> {code:java}
> Caused by: java.lang.IllegalArgumentException: No enum constant 
> com.amazonaws.regions.Regions.us-east-2
>       at java.lang.Enum.valueOf(Enum.java:238)
>       at com.amazonaws.regions.Regions.valueOf(Regions.java:26)
>       at 
> org.apache.camel.component.aws.sqs.SqsEndpoint.createClient(SqsEndpoint.java:310)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to