开发者社区> 问答> 正文

java 访问oss对象存储出错

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 请问该问题如何解决?

展开
收起
张翔xrr 2020-05-20 15:51:53 2841 0
3 条回答
写回答
取消 提交回答
  • 这个问题解决了吗

    2022-07-11 17:16:44
    赞同 展开评论 打赏
  • 同问,这个问题现在有答案了吗

    2022-04-18 16:54:36
    赞同 展开评论 打赏
  • 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 完成

    2021-02-20 00:07:00
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
OSS运维进阶实战手册 立即下载
《OSS运维基础实战手册》 立即下载
OSS运维基础实战手册 立即下载