aliyun / aliyun-oss-java-sdk

Aliyun OSS SDK for Java
1.22k stars 805 forks source link

v:3.4.0 SocketException #540

Open winston-zhong opened 4 months ago

winston-zhong commented 4 months ago

3.4.0版本 你好,更换bucketName后报这个错误要怎么解决呢?生产上报这个错误,本机则没有

    at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:71)
    at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:127)
    at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:133)
    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.OSSObjectOperation.writeObjectInternal(OSSObjectOperation.java:897)
    at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:129)
    at com.aliyun.oss.OSSClient.putObject(OSSClient.java:471)
    at com.ftlife.util.OSSUploadUtil.putObject(OSSUploadUtil.java:183)
    at com.ftlife.util.OSSUploadUtil.uploadFile(OSSUploadUtil.java:42)
    at com.ftlife.util.FileUtil.getMP4Path(FileUtil.java:261)
    at com.ftlife.videoCenter.VideoCenterCtrl.addVideo(VideoCenterCtrl.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)