---
title: "新浪微博代理服务器访问不通过异常"
author: "javatomcat"
date: "2013-01-24T10:16:39Z"
tags: []
categories: ["互联网"]
slug: "untitled"
draft: false
lastmod: "2013-01-24T10:16:21Z"
id: 1774846
url: "https://javatomcat.iteye.com/blog/1774846"
---

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

```java

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);

将这两行代码注释，即能正常访问，这两行代码是否会引起其它的错误暂未知。