后台报错抛出异常:
javax.net.ssl.SSLException: Server selected improper ciphersuite SSL_RSA_WITH_DES_CBC_SHA
at sun.security.ssl.Alerts.getSSLException(UnkNown Source)
at sun.security.ssl.SSLSocketImpl.fatal(UnkNown Source)
at sun.security.ssl.Handshaker.fatalSE(UnkNown Source)
at sun.security.ssl.Handshaker.fatalSE(UnkNown Source)
at sun.security.ssl.ClientHandshaker.serverHello(UnkNown Source)
at sun.security.ssl.ClientHandshaker.processMessage(UnkNown Source)
at sun.security.ssl.Handshaker.processLoop(UnkNown Source)
at sun.security.ssl.Handshaker.process_record(UnkNown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(UnkNown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(UnkNown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(UnkNown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(UnkNown Source)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:533)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401)
at org.apache.http.impl.conn.DefaultClientConnectionoperator.openConnection(DefaultClientConnectionoperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at login.schedule(login.java:188)
at login.<init>(login.java:49)
at launch.main(launch.java:4)
解决方法:如果其他服务器没报错,可以到这个服务器jdk 的安装目录复制一份security 文件,目录一般在jre\lib\security下,比如C:\Program Files\Java\jdk1.8.0_131\jre\lib\security ,然后复制到本地jdk 环境。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。