java 访问oss对象存储出错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

java 访问oss对象存储出错

张翔xrr 2020-05-20 15:51:53 279

java语言,使用aliyun-sdk-oss-3.8.1.jar上传文件至对象oss对象存储报错,错误如下: com.aliyun.oss.ClientException: Failed to reset the request input stream: [ErrorCode]: Unknown [RequestId]: Unknown at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:114) at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:70) at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:83) at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:145) at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:102) at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:97) at com.aliyun.oss.internal.OSSMultipartOperation.uploadPart(OSSMultipartOperation.java:354) at com.aliyun.oss.OSSClient.uploadPart(OSSClient.java:824) at com.i2.dto.sync.OssOperator$PartUploader.run(OssOperator.java:619) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Resetting to invalid mark at java.io.BufferedInputStream.reset(BufferedInputStream.java:448) at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:111) ... 11 more 请问该问题如何解决?

Java 对象存储
分享到
取消 提交回答
全部回答(1)
  • 游客2q7uranxketok
    2021-02-20 00:07:00

    ava.security.NoSuchAlgorithmException:Algorithm HmacSHA1 not available

    解决方法:

    修改项目 jdk指向路径:

    如下图,由原先的D:\Program Files\Java\jdk1.8.0_181 改为 D:\Program Files\Java\jre1.8.0_181 ,重启 eclipse 完成

    0 0
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章
相似问题
推荐课程