我正在尝试通过twitter4j库连接到Twitter。但是,我得到以下异常:
Unrecognized SSL message, plaintext connection?
Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=506c3b98 or
http://www.google.co.jp/search?q=1136696a
TwitterException{exceptionCode=[506c3b98-1136696a 63e3f388-1596bf9d], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.4}
at twitter4j.HttpClientImpl.handleRequest(HttpClientImpl.java:179)
at twitter4j.HttpClientBase.request(HttpClientBase.java:57)
at twitter4j.HttpClientBase.get(HttpClientBase.java:75)
at twitter4j.TwitterImpl.get(TwitterImpl.java:1786)
at twitter4j.TwitterImpl.search(TwitterImpl.java:255)
at edu.ihu.SearchTweets.main(SearchTweets.java:24)
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
我检查了Eclipse中的Internet连接设置(我用于开发的IDE)。 HTTPS端口设置正确,我可以通过Eclipse的内部Web浏览器访问Twitter。任何解决这个问题的建议都将受到赞赏。