ITeye博客

新浪微博代理服务器访问不通过异常

javatomcat · 2013-01-24 10:16 · 互联网 · Markdown

昨天接入新浪微博测试的时候,一直报错


109  WARN  [2013-01-24 10:12:14]  Required proxy credentials not available for BASIC <any realm>@172.16.1.XXX
109  WARN  [2013-01-24 10:12:14]  Preemptive authentication requested but no default proxy credentials available
109  WARN  [2013-01-24 10:12:14]  Required credentials not available for BASIC <any realm>@api.weibo.com:443
109  WARN  [2013-01-24 10:12:14]  Preemptive authentication requested but no default credentials available
9437 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);

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。