[ 
https://issues.apache.org/jira/browse/CAMEL-12647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542227#comment-16542227
 ] 

ASF GitHub Bot commented on CAMEL-12647:
----------------------------------------

GitHub user saravanakumar1987 opened a pull request:

    https://github.com/apache/camel/pull/2424

    CAMEL-12647 : Problem in setting region for camel AWS-SQS endpoint

    PR created for Bug : https://issues.apache.org/jira/browse/CAMEL-12647
    
    Thanks,
    Saravanakumar

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/saravanakumar1987/camel master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2424.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2424
    
----
commit 9a2ce74a208f8df622536202acf3c2e26ef417a6
Author: Saravanakumar Selvaraj <saravanakumar.java@...>
Date:   2018-07-12T21:40:57Z

    CAMEL-12647 : Problem in setting region for camel AWS-SQS endpoint

----


> 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
>            Priority: Major
>
> 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