[
https://issues.apache.org/jira/browse/JCLOUDS-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14014055#comment-14014055
]
Andrew Gaul edited comment on JCLOUDS-498 at 5/30/14 6:26 PM:
--------------------------------------------------------------
[~bbranan] Based on the stack trace including
{{sun.net.www.protocol.http.HttpURLConnection.expect100Continue}} your server
likely does not handle {{Expect: 100-continue}} correctly. Please set
{{jclouds.strip-expect-header}} to true in {{ContextBuilder.properties}} as a
workaround.
I also recommend not using an {{InputStream}} payload as this is not repeatable
and does not allow retries to work. Instead call
{{BlobBuilder.payload(Files.asByteSouce(File))}}.
Note that you could also downgrade to Java 6 as a workaround which does not
have Expect: 100-continue handling.
was (Author: gaul):
[~bbranan] Based on the stack trace including
{{sun.net.www.protocol.http.HttpURLConnection.expect100Continue}} your server
likely does not handle {{Expect: 100-continue}} correctly. Please set
{{jclouds.strip-expect-header}} to true in {{ContextBuilder.properties}} as a
workaround.
I also recommend not using an {{InputStream}} payload as this is not repeatable
and does not allow retries to work. Instead call
{{BlobBuilder.payload(Files.asByteSouce(File))}}.
> PUT object calls fail against Swift with JClouds 1.7.1
> ------------------------------------------------------
>
> Key: JCLOUDS-498
> URL: https://issues.apache.org/jira/browse/JCLOUDS-498
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-blobstore
> Affects Versions: 1.7.1
> Environment: Tested on Windows 7 with Java 1.7.0_45
> Reporter: Bill Branan
> Priority: Critical
>
> I am attempting to upgrade my application from JClouds 1.5.5 to JClouds
> 1.7.1. My application connects to an OpenStack Swift storage provider for
> storing objects. After updating to 1.7.1 all calls seem to work except the
> calls to store new objects. I've tested listing containers, updating object
> properties, deleting objects, and deleting containers, and all of these work,
> but putting a new object does not.
> The error I see when attempting to put a new object is listed below. I get
> this error regardless of whether I am using the SwiftClient or the BlobStore
> interface.
> I wrote up some tests to isolate the issue.
> The test for 1.7.1 is here:
> https://github.com/bbranan/sdsc-tests/tree/master/sdsc-jclouds-1.7.1
> The test for 1.5.5 is here:
> https://github.com/bbranan/sdsc-tests/tree/master/sdsc-jclouds-1.5.5
> The tests can be built using "ant" and run using "ant run". The tests work
> perfectly with 1.5.5, but fail with 1.7.1. (You'll need to enter a couple
> params at the top of the Java class prior to building.)
> I should also note that the tests for 1.7.1 pass when I connect to Rackspace,
> but fail when I connect to SDSC Cloud, so there may be differences between
> OpenStack Swift providers that are not being accounted for. SDSC Cloud is
> running the Grizzly version of Swift.
> The error I see on PUT failure:
> [java] SEVERE: Cannot retry after server error, command is not
> replayable: [method=public abstract
> com.google.common.util.concurrent.ListenableFuture
> org.jclouds.openstack.swift.CommonSwiftAsyncClient.putObject(java
> .lang.String,org.jclouds.openstack.swift.domain.SwiftObject)[test-container-1394647640389,
> [info=[contentDisposition=null, contentEncoding=null, contentLanguage=null,
> contentLength=null, contentMD5=null, contentType=appl
> ication/unknown, expires=null]]], request=PUT
> https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-blob-1394647701119
> HTTP/1.1]
> [java] PUT failed with error: Read timed out connecting to PUT
> https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-blob-13946477011
> 19 HTTP/1.1
> [java] org.jclouds.http.HttpResponseException: Read timed out connecting
> to PUT
> https://duracloud.auth.cloud.sdsc.edu:443/v1/DURACLOUD_36ef189e-614e-49a9-bb8d-84f66e8553d5/test-container-1394647640389/test-content-b
> lob-1394647701119 HTTP/1.1
--
This message was sent by Atlassian JIRA
(v6.2#6252)