首先问下这个客户端是否开源,这样调试也方便些。。再者就是以下问题了。。请大家帮忙看看
Exception in thread "main" com.aliyun.openservices.ClientException: 网络连接错误,详细信息:null
at com.aliyun.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:198)
at com.aliyun.common.comm.ServiceClient.sendRequest(ServiceClient.java:138)
at com.aliyun.openservices.oss.internal.OSSOperation.send(OSSOperation.java:59)
at com.aliyun.openservices.oss.internal.OSSObjectOperation.putObject(OSSObjectOperation.java:76)
at com.aliyun.openservices.oss.OSSClient.putObject(OSSClient.java:283)
at com.aliyun.openservices.oss.samples.OSSObjectSample.uploadFile(OSSObjectSample.java:120)
at com.aliyun.openservices.oss.samples.OSSObjectSample.main(OSSObjectSample.java:63)
Caused by: org.apache.http.client.ClientProtocolException
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:822)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
at com.aliyun.common.comm.DefaultServiceClient.sendRequestCore(DefaultServiceClient.java:51)
at com.aliyun.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:175)
... 6 more
Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity.
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:625)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
... 10 more
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。