I am running into this problem in the course of working on a rest api that accepts PUT calls and then streams that contents of the push into S3 using the AWS S3 Java API.
The error I am getting was this:
Caused by: com.amazonaws.AmazonClientException: Data read has a different length than the expected: dataLength=365; expectedLength=366; includeSkipped=false; in.getClass()=class org.duracloud.common.stream.ChecksumInputStream; markedSupported=false; marked=0; resetSinceLastMarked=false; markCount=0; resetCount=0
I'm using aws-java-sdk 1.9.1.
The problem has appeared since I upgraded from v.1.7.3