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

Problem in setting region for camel AWS-SQS endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.24.3, 2.25.2
    • None
    • camel-aws
    • None
    • Unknown

    Description

      It gives ResolveEndpointFailedException while creating camel AWS-SQS endpoint with URL.

      For example, below producer or consumer endpoint is not being created.

      uri="https://sqs.us-east-1.amazonaws.com/104966627370/test-comms-filebroker-mvan"

      And it throws error as follows.

      Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: aws-sqs://test-comms-filebroker-s3?amazonSQSClient=%23client&concurrentConsumers=5&deleteAfterRead=false&maxMessagesPerPoll=1&queueOwnerAWSAccountId=056684691971&region=us-east-1 due to: No enum constant com.amazonaws.regions.Regions.us-east-1
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:752) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:227) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:122) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:75) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:98) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1332) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:212) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	... 16 more
      Caused by: java.lang.IllegalArgumentException: No enum constant com.amazonaws.regions.Regions.us-east-1
      	at java.lang.Enum.valueOf(Enum.java:238) ~[?:1.8.0_265]
      	at com.amazonaws.regions.Regions.valueOf(Regions.java:25) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.component.aws.sqs.SqsEndpoint.doStart(SqsEndpoint.java:132) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1554) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1471) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1441) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1437) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:748) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:227) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:122) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:75) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:98) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1332) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:212) ~[filebroker-jar-with-dependencies.jar:2.15.38-SNAPHOT]
      

      Attachments

        1. AWS_SQS_Queue.png
          176 kB
          Nikolay Blindov

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              nikolayb Nikolay Blindov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: