无法与S3

时间:2017-10-16 19:55:45

标签: amazon-web-services amazon-s3

我正在尝试将文件上传到S3存储桶,上传成功但在上传后它给了我一个例外

   Unable to communicate to S3
com.amazonaws.SdkClientException
    at com.amazonaws.internal.ResettableInputStream.newResettableInputStream(ResettableInputStream.java:302) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    at com.amazonaws.internal.ResettableInputStream.newResettableInputStream(ResettableInputStream.java:277) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    at com.amazonaws.internal.ReleasableInputStream.wrap(ReleasableInputStream.java:129) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    at com.amazonaws.services.s3.transfer.internal.UploadPartRequestFactory.<init>(UploadPartRequestFactory.java:68) ~[aws-java-sdk-s3-1.11.166.jar!/:?]
    at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInParts(UploadCallable.java:184) ~[aws-java-sdk-s3-1.11.166.jar!/:?]
    at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:123) ~[aws-java-sdk-s3-1.11.166.jar!/:?]
    at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:143) ~[aws-java-sdk-s3-1.11.166.jar!/:?]
    at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:48) ~[aws-java-sdk-s3-1.11.166.jar!/:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_45]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_45]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
Caused by: java.nio.channels.ClosedChannelException
    at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:109) ~[?:1.8.0_45]
    at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:252) ~[?:1.8.0_45]
    at com.amazonaws.internal.ResettableInputStream.<init>(ResettableInputStream.java:113) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    at com.amazonaws.internal.ResettableInputStream.<init>(ResettableInputStream.java:101) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    at com.amazonaws.internal.ResettableInputStream.newResettableInputStream(ResettableInputStream.java:300) ~[aws-java-sdk-core-1.11.166.jar!/:?]
    ... 11 more

0 个答案:

没有答案