title: com.amazonaws.AmazonClientException: Data read has a different length than the expected
body: <p>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.  </p>
  
  <p>The error I am getting was this: </p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>I'm using aws-java-sdk 1.9.1.</p>
  
  <p>The problem has appeared since I upgraded from v.1.7.3</p>