读书人

新浪微博代理服务器访问不通过错误

发布时间: 2013-02-18 10:50:49 作者: rapoo

新浪微博代理服务器访问不通过异常
昨天接入新浪微博测试的时候,一直报错

109  WARN  [2013-01-24 10:12:14]  Required proxy credentials not available for BASIC <any realm>@172.16.1.XXX109  WARN  [2013-01-24 10:12:14]  Preemptive authentication requested but no default proxy credentials available109  WARN  [2013-01-24 10:12:14]  Required credentials not available for BASIC <any realm>@api.weibo.com:443109  WARN  [2013-01-24 10:12:14]  Preemptive authentication requested but no default credentials available9437 INFO  [2013-01-24 10:12:23]  I/O exception (javax.net.ssl.SSLException) caught when processing request: Unrecognized SSL message, plaintext connection?9437 INFO  [2013-01-24 10:12:23]  Retrying request


解决方法:
//Protocol myhttps = new Protocol("https", new MySSLSocketFactory(), 443);
//Protocol.registerProtocol("https", myhttps);

将这两行代码注释,即能正常访问,这两行代码是否会引起其它的错误暂未知。

读书人网 >互联网

热点推荐