[JetS3t Users] Im getting an exception when trying to put an object into S3

145 views
Skip to first unread message

Mohamed Faramawi

unread,
Apr 27, 2010, 9:15:25 AM4/27/10
to JetS3t Users
Here is the exception, any idea what might be causing this ?

org.jets3t.service.S3ServiceException: S3 PUT failed for '/
my_test_bucket/test_key' XML Error Message: <?xml version="1.0"
encoding="UTF-8"?><Error><Code>BadDigest</Code><Message>The Content-
MD5 you specified did not match what we received.</
Message><ExpectedDigest>avgwfCRg8tIIrSVPBL5LDQ==</
ExpectedDigest><CalculatedDigest>1B2M2Y8AsgTpgAmY7PhCfg==</
CalculatedDigest><RequestId>0757B8F7F6133AEB</RequestId><HostId>BD/TU/
ningMLNEdHfolU2Kesm4L/xeMFoK/qJSKiMfh86pu5OkC6J08+BQ2PJh3y</HostId></
Error>
at
org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:
416)
at
org.jets3t.service.impl.rest.httpclient.RestS3Service.performRestPut(RestS3Service.java:
800)
at
org.jets3t.service.impl.rest.httpclient.RestS3Service.createObjectImpl(RestS3Service.java:
1399)
at
org.jets3t.service.impl.rest.httpclient.RestS3Service.putObjectImpl(RestS3Service.java:
1317)
at org.jets3t.service.S3Service.putObject(S3Service.java:1661)
at org.jets3t.service.S3Service.putObject(S3Service.java:1914)

--
You received this message because you are subscribed to the Google Groups "JetS3t Users" group.
To post to this group, send email to jets3t...@googlegroups.com.
To unsubscribe from this group, send email to jets3t-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jets3t-users?hl=en.

James Murty

unread,
Apr 27, 2010, 10:47:41 AM4/27/10
to jets3t...@googlegroups.com
The error message lets you know what's going wrong -- Bad Digest: The Content-

MD5 you specified did not match what we received.

If you are setting the MD5 of your upload objects you are setting a value that does not match the data you are actually sending to S3. The other possibility is that your data is being corrupted in transit to S3, though this is less likely.
Reply all
Reply to author
Forward
0 new messages