昨天接入新浪微博测试的时候,一直报错
解决方法:
// Protocol myhttps = new Protocol("https", new MySSLSocketFactory(), 443);
// Protocol.registerProtocol("https", myhttps);
将这两行代码注释,即能正常访问,这两行代码是否会引起其它的错误暂未知。
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);
将这两行代码注释,即能正常访问,这两行代码是否会引起其它的错误暂未知。