新浪微博代理服务器访问不通过异常
昨天接入新浪微博测试的时候,一直报错
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);
将这两行代码注释,即能正常访问,这两行代码是否会引起其它的错误暂未知。