###前提・実現したいこと
aws-sdk-javaを利用して、分割したInputStreamをPUTしようとしたところで
以下のエラーがキャッチされました。
###発生している問題・エラーメッセージ
com.amazonaws.SdkClientException: Unable to position the currentPosition from 5242879 to 5242880
###エラーをキャッチしている箇所
以下の、 throw new SdkClientExceptionが返却されているようです。
どういう時にエラーが返されているのでしょうか?
デバッグしたいのですが、Jarなので出来ないです。
@Override public int read(byte[] b, int off, int len) throws IOException { int count = 0; while (currentPosition < requestedOffset) { long skippedBytes = super.skip(requestedOffset - currentPosition); if (skippedBytes == 0) { count++; if (count > MAX_SKIPS) { throw new SdkClientException( "Unable to position the currentPosition from " + currentPosition + " to " + requestedOffset); } } currentPosition += skippedBytes; } long bytesRemaining = (requestedLength + requestedOffset) - currentPosition; if (bytesRemaining <= 0) return -1; len = (int) Math.min(len, bytesRemaining); int bytesRead = super.read(b, off, len); currentPosition += bytesRead; return bytesRead; }
ソース元:aws-sdk-java(Github)
どんな小さな情報でも大変助かります。
よろしくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。