先描述情况:
在ECS上连接到OSS读取或验证文件
Java SDK使用版本为最新2.0.2
ClientConfiguration配置为默认,如最大连接数512,超时时间50*1000等。
暂时没动过他源码
由com.aliyun.oss.common.comm.DefaultServiceClient.sendRequest调用org.apache.client.HttpClient.execute时抛出,
已知异常类是org.apache.http.conn.ConnectTimeoutException
好心酸
[ErrorMessage]: Timeout waiting for connection from pool
[RequestId]: Unknown
com.aliyun.oss.ClientException: [ErrorCode]: ConnectionTimeout
[ErrorMessage]: Timeout waiting for connection from pool
[RequestId]: Unknown
at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:31)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:57)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:173)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:133)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:68)
at com.aliyun.oss.internal.OSSObjectOperation.getObject(OSSObjectOperation.java:190)
at com.aliyun.oss.OSSClient.getObject(OSSClient.java:398)
at com.aliyun.oss.OSSClient.getObject(OSSClient.java:372)
[ErrorMessage]: Timeout waiting for connection from pool
[RequestId]: Unknown
com.aliyun.oss.ClientException: [ErrorCode]: ConnectionTimeout
[ErrorMessage]: Timeout waiting for connection from pool
[RequestId]: Unknown
at com.aliyun.oss.common.utils.ExceptionFactory.createNetworkException(ExceptionFactory.java:31)
at com.aliyun.oss.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:57)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:173)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:133)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:68)
at com.aliyun.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:92)
at com.aliyun.oss.OSSClient.putObject(OSSClient.java:334)
-------------------------
-------------------------
-------------------------
-------------------------
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。