-
Notifications
You must be signed in to change notification settings - Fork 725
Exception in thread "listenMsgMode" blade.kit.http.HttpRequestException: #9
Comments
login的时候也有这个问题了 2016-08-16 18:51:46,516 INFO [main] me.biezhi.weixin.App | [*] GET https://web2.wechat.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=BMerIM4UXWbEmxgVN58ReSJf@qrticket_0&uuid=oaQZ6RHUAQ==&lang=zh_CN&scan=1471384300&fun=new |
今天也遇到了这个问题,用了好多方法都没能解决这个问题。用wget抓回来的网页应该是没问题的。 |
在url访问的代码前加上System.setProperty("https.protocols", "TLSv1") |
fix in 4dfed15 |
Exception in thread "listenMsgMode" blade.kit.http.HttpRequestException: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at blade.kit.http.HttpRequest.send(HttpRequest.java:2608)
at me.biezhi.weixin.App.webwxsync(App.java:447)
at me.biezhi.weixin.App$2.run(App.java:572)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:980)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1363)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1391)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1375)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1282)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1257)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
at blade.kit.http.HttpRequest.openOutput(HttpRequest.java:2297)
at blade.kit.http.HttpRequest.send(HttpRequest.java:2605)
... 3 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:961)
... 13 more
The text was updated successfully, but these errors were encountered: