Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8962733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:11:50+00:00 2026-06-15T16:11:50+00:00

com.amazonaws.AmazonClientException: Unable to execute HTTP request: Connection reset at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:324) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:164) at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.invoke(AmazonDynamoDBClient.java:985)

  • 0
com.amazonaws.AmazonClientException: Unable to execute HTTP request: Connection reset
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:324)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:164)
    at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.invoke(AmazonDynamoDBClient.java:985)
    at com.amazonaws.services.dynamodb.AmazonDynamoDBClient.batchWriteItem(AmazonDynamoDBClient.java:365)
    .
    .
    .

The above exception was caught when attempting to run the following code sample.

BatchWriteItemResult result;
BatchWriteItemRequest batchWriteItemRequest = new BatchWriteItemRequest();
do {
    System.out.println("Making the request.");                         
    batchWriteItemRequest.withRequestItems(requestItems);
    result = client.batchWriteItem(batchWriteItemRequest);

    // Print consumed capacity units
    for(Map.Entry<String, BatchWriteResponse> entry : result.getResponses().entrySet()) {
        String tableName = entry.getKey();
        Double consumedCapacityUnits = entry.getValue().getConsumedCapacityUnits();
        System.out.println("Consumed capacity units for table " + tableName + ": " + consumedCapacityUnits);
     }

  // Check for unprocessed keys which could happen if you exceed provisioned throughput
    System.out.println("Unprocessed Put and Delete requests: \n" + result.getUnprocessedItems());
    requestItems = result.getUnprocessedItems();
} while (result.getUnprocessedItems().size() > 0);

I have 1 table set up with 8 Write Units configured.

In my BatchWriteItemRequest I have 9 PutRequestItems.

When the first time in the while loop, 8 out of the 9 PutRequestItems were processed.
Therefore, the loop was entered again, trying to process the one remaining request.

However, the code would hang at
result = client.batchWriteItem(batchWriteItemRequest); for around 149 seconds. After then, the above mentioned exception is thrown.

It seems the only way to bypass this was to set a higher Write Provisioning Unit. However, isn’t the while-do loop a way to handle cases where we exceed our provisioned Write Units?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:11:52+00:00Added an answer on June 15, 2026 at 4:11 pm

    It seems to be a bug on the Java Driver v. 1.3.21 (or maybe including older versions).

    1.3.21.1 was released just to take care of that:

    Resolved Issues

    SocketException During Request Retries

    Fixes an issue where retries caused by service error responses (i.e.
    not IO error retries) aren’t able to correctly resend the request
    payload for services like Amazon DynamoDB that utilize request
    payloads.

    see http://aws.amazon.com/releasenotes/Java/5659251433242996

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the available targets for Snow Leopard services in automator. Available service targets http://s3.amazonaws.com/augustl-stuff/automator-available-service-targets-84.png
We have an url like http://site.s3.amazonaws.com/images/some image @name.jpg inside $string What I'm trying to
I'm trying to access the http://s3.amazonaws.com/commoncrawl/parse-output/segment/ bucket with boto. I can't figure out how
I'm going through the NerDinner free tutorial http://nerddinnerbook.s3.amazonaws.com/Intro.htm I got to somewhere in Step
I'm new to asp.net and now following through the http://nerddinnerbook.s3.amazonaws.com/Part1.htm howto. All is fine
I use CXF(2.2.3) to compile the Amazon Web Service WSDL ( http://s3.amazonaws.com/ec2-downloads/2009-07-15.ec2.wsdl ) But
I'm following Scott Guthries MVC tutorial ( http://nerddinnerbook.s3.amazonaws.com/Part6.htm ) and there's something I don't
How do you make $s3->get_object_url() from PHP SDK return: http://my-bucket.my-domain.com/example.txt instead of http://my-bucket.s3.amazonaws.com/example.txt
I've put in my page's header the following <link rel=image_src href=http://fractalsoft.s3.amazonaws.com/sfondo.jp2 /> but the
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip on that Alexa domain ranking spreadsheet (top 1 million domains in the world)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.