2019-05-23 15:25:40,025 DEBUG [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] - Connection [id: 0][route: {}->http://10.77.150.16:31001] can be kept alive indefinitely
2019-05-23 15:25:40,025 DEBUG [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] - Connection released: [id: 0][route: {}->http://10.77.150.16:31001][total kept alive: 1; route allocated: 1 of 1024; total allocated: 1 of 1024]
Exception in thread "main" com.aliyun.oss.OSSException: 返回结果无效,无法解析。
[ErrorCode]: InvalidResponse
[RequestId]: null
[HostId]: null
[ResponseError]:
<html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
at com.aliyun.oss.common.utils.ExceptionFactory.createOSSException(ExceptionFactory.java:109)
at com.aliyun.oss.common.utils.ExceptionFactory.createInvalidResponseException(ExceptionFactory.java:91)
at com.aliyun.oss.common.utils.ExceptionFactory.createInvalidResponseException(ExceptionFactory.java:81)
at com.aliyun.oss.internal.OSSErrorResponseHandler.handle(OSSErrorResponseHandler.java:71)
at com.aliyun.oss.common.comm.ServiceClient.handleResponse(ServiceClient.java:248)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:130)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:68)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:94)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:149)
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:113)
at com.aliyun.oss.internal.OSSObjectOperation.writeObjectInternal(OSSObjectOperation.java:907)
at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:148)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:475)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:457)
at com.wondersgroup.ltcins.fileupload.util.AliyunOSSClientUtil.uploadByteOSS(AliyunOSSClientUtil.java:327)
at com.wondersgroup.ltcins.fileupload.util.AliyunOSSClientUtil.main(AliyunOSSClientUtil.java:474)
2019-05-23 15:25:40,108 WARN [com.aliyun.oss] - [Server]Unable to execute HTTP request: 返回结果无效,无法解析。
[ErrorCode]: InvalidResponse
[RequestId]: null
[HostId]: null