Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

版本3.16.0 上传putObject空指针异常 #467

Open
99246255 opened this issue Mar 30, 2023 · 1 comment
Open

版本3.16.0 上传putObject空指针异常 #467

99246255 opened this issue Mar 30, 2023 · 1 comment

Comments

@99246255
Copy link

版本3.16.0

PutObjectResult putObjectResult = client.putObject(config.getBucketName(), putObjectBytesCmd.getKey(), putObjectBytesCmd.getInputStream(), metadata);

java.lang.NullPointerException: null
at com.aliyun.oss.common.comm.DefaultServiceClient$DefaultRetryStrategy.shouldRetry(DefaultServiceClient.java:212)
at com.aliyun.oss.common.comm.ServiceClient.shouldRetry(ServiceClient.java:320)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:168)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:85)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:134)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:192)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:153)
at com.aliyun.oss.internal.OSSObjectOperation.writeObjectInternal(OSSObjectOperation.java:1195)
at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:130)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:619)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:603)

@99246255
Copy link
Author

3.6.1版本仍有
专有云偶尔报错
2023-03-30 15:18:29,530 [http-nio-15062-exec-8] [WARN ]--[logId] com.aliyun.oss 70 -- [Server]Unable to execute HTTP request: null
[ErrorCode]: null
[RequestId]: null
[HostId]: null
[ResponseError]:

403 Forbidden

Request forbidden by administrative rules.

2023-03-30 15:18:29,536 [http-nio-15062-exec-8] [ERROR]--[logId] c.j.s.t.h.GlobalExceptionHandler 175 -- 系统异常:class java.lang.NullPointerException
java.lang.NullPointerException: null
at com.aliyun.oss.common.comm.DefaultServiceClient$DefaultRetryStrategy.shouldRetry(DefaultServiceClient.java:212)
at com.aliyun.oss.common.comm.ServiceClient.shouldRetry(ServiceClient.java:320)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:168)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:85)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:134)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:192)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:153)
at com.aliyun.oss.internal.OSSObjectOperation.writeObjectInternal(OSSObjectOperation.java:1195)
at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:130)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:619)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:603)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant