分片上传提示返回结果无效-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

分片上传提示返回结果无效

roger_4 2017-10-14 16:05:52 3101

使用java api进行分片上传
OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret);
InitiateMultipartUploadRequest request = new InitiateMultipartUploadRequest(bucketName, key);
InitiateMultipartUploadResult result = ossClient.initiateMultipartUpload(request);
运行到initiateMultipartUpload就报错:
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" com.aliyun.oss.OSSException: 返回结果无效,无法解析。

[ResponseError]:

at com.aliyun.oss.common.utils.ExceptionFactory.createOSSException(ExceptionFactory.java:109)
at com.aliyun.oss.common.utils.ExceptionFactory.createInvalidResponseException(ExceptionFactory.java:91)
at com.aliyun.oss.common.utils.ExceptionFactory.createInvalidResponseException(ExceptionFactory.java:81)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:154)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:113)
at com.aliyun.oss.internal.OSSMultipartOperation.initiateMultipartUpload(OSSMultipartOperation.java:243)
at com.aliyun.oss.OSSClient.initiateMultipartUpload(OSSClient.java:794)
at com.oppo.oss.OSSTest.main(OSSTest.java:49)
Java API
分享到
取消 提交回答
全部回答(1)
  • 大国之民
    2019-07-17 21:39:27

    为啥没人回答。我也遇到了这个问题。

    0 0
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题