8
条回答
写回答
取消
提交回答
-
全面部分都ok,可是
PutObjectFromFile
!!!初始变量
static String upFilePath = "g:/alidata/updata/up.rar";
static String downFilePath = "g:/alidata/downdata/down.rar";
static String bucket = accessKeyId.toLowerCase() +"-test-buchet";
static String object = accessKeyId.toLowerCase() + "-test-object";
static String group = accessKeyId.toLowerCase() + "-test-group";
----- GettObjectWithIfMatch ------
Success
----- GetObjectInputStream ------
OSS Sample
----- GetObjectInputStreamWithRange ------
Date:Mon, 21 Nov 2011 08:05:56 GMT
Server:AliyunOSS
x-oss-request-id:2a5bd7f2-6698-e261-387c-f2877a6c7b52
Last-Modified:Mon, 21 Nov 2011 08:05:56 GMT
ETag:"9BF156C2C16BB90B9EC81C96FE37EF1B"
Connection:close
Accept-Ranges:bytes
Content-Range:bytes 0-5/10
Content-Length:6
Content-Type:text/plain
OSS Sa
----- PutObjectWithUserMeta------
Success
----- GetObjectMeta -----
x-oss-request-id:5a4cc6b4-645c-8bc4-2b83-f8b95b63a452
ETag:"9BF156C2C16BB90B9EC81C96FE37EF1B"
Date:Mon, 21 Nov 2011 08:06:19 GMT
Content-Length:10
Last-Modified:Mon, 21 Nov 2011 08:06:16 GMT
x-oss-meta-id:123
Content-Type:text/plain
Connection:close
Server:AliyunOSS
----- IsObjectExists -----
true
----- PutObjectFromFile -----
2011-11-21 16:23:11 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: socket write error
2011-11-21 16:23:11 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
信息: Retrying request
Exception in thread "main" org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated.
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at com.aliyun.oss.api.OSSClient.execute(OSSClient.java:130)
at com.aliyun.oss.api.OSSClient.request(OSSClient.java:168)
at com.aliyun.oss.api.OSSClient.objectOperation(OSSClient.java:206)
at com.aliyun.oss.api.OSSClient.putObjectFromInputStream(OSSClient.java:829)
at com.aliyun.oss.api.OSSClient.putObjectFromFile(OSSClient.java:775)
at com.aliyun.oss.api.OSSClient.putObjectFromFile(OSSClient.java:745)
at OssSample.main(OssSample.java:219)
2011-11-21 16:31:06
-
没有.net版?遗憾!
2011-11-20 17:31:56
-
什么时候有php啊。急啊
2011-11-14 12:19:38
-
介绍里说有PHP的嘛?咋没有啊?
2011-11-05 23:20:28
-
TO wf141732 你好:
请问您目前所在的地区是哪里?
下载地址刚刚我又测试了一次~~ 我这里没问题呢~~
2011-11-04 11:21:29
-
下载不了,链接地址有问题
2011-11-03 16:35:16
-
Java API开发包,解压不了啊,有问题!!!
2011-11-02 15:20:59
-
滑动查看更多