com.amazonaws.services.sqs.model.AmazonSQSException: null (Service: AmazonSQS; Status Code: 504; Error Code: 504 Gateway Time-out; Request ID: null)

GitHub | ptimsonbbc | 4 months ago
  1. 0

    Connection issue with proxy in Java

    GitHub | 4 months ago | ptimsonbbc
    com.amazonaws.services.sqs.model.AmazonSQSException: null (Service: AmazonSQS; Status Code: 504; Error Code: 504 Gateway Time-out; Request ID: null)

    Root Cause Analysis

    1. com.amazonaws.services.sqs.model.AmazonSQSException

      null (Service: AmazonSQS; Status Code: 504; Error Code: 504 Gateway Time-out; Request ID: null)

      at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
    2. AWS SDK for Java - Core
      AmazonHttpClient.execute
      1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1386)[aws-java-sdk-core-1.11.28.jar:na]
      2. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:939)[aws-java-sdk-core-1.11.28.jar:na]
      3. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:714)[aws-java-sdk-core-1.11.28.jar:na]
      4. com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:465)[aws-java-sdk-core-1.11.28.jar:na]
      5. com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:427)[aws-java-sdk-core-1.11.28.jar:na]
      6. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:376)[aws-java-sdk-core-1.11.28.jar:na]
      6 frames
    3. AWS Java SDK for Amazon SQS
      AmazonSQSClient.receiveMessage
      1. com.amazonaws.services.sqs.AmazonSQSClient.doInvoke(AmazonSQSClient.java:1750)[aws-java-sdk-sqs-1.11.28.jar:na]
      2. com.amazonaws.services.sqs.AmazonSQSClient.invoke(AmazonSQSClient.java:1720)[aws-java-sdk-sqs-1.11.28.jar:na]
      3. com.amazonaws.services.sqs.AmazonSQSClient.receiveMessage(AmazonSQSClient.java:1370)[aws-java-sdk-sqs-1.11.28.jar:na]
      3 frames
    4. uk.co.bbc
      SegUploaderScheduler.schedule
      1. uk.co.bbc.seg_uploader.messaging.SQSSegNotificationQueue.retrieveSQSMessages(SQSSegNotificationQueue.java:59)[classes/:na]
      2. uk.co.bbc.seg_uploader.messaging.SQSSegNotificationQueue.receiveNotificationsFromQueue(SQSSegNotificationQueue.java:48)[classes/:na]
      3. uk.co.bbc.seg_uploader.messaging.SQSSegNotificationQueue.pollQueue(SQSSegNotificationQueue.java:35)[classes/:na]
      4. uk.co.bbc.seg_uploader.schedule.SegUploaderScheduler.schedule(SegUploaderScheduler.java:50)[classes/:na]
      4 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_73]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_73]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_73]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_73]
      4 frames
    6. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_73]
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[na:1.8.0_73]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_73]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[na:1.8.0_73]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_73]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_73]
      7. java.lang.Thread.run(Thread.java:745)[na:1.8.0_73]
      7 frames