sslexception

SSL Exception when using Volley

旧时模样 提交于 2019-11-29 03:07:42
问题 I'm using Volley in Android to perform my app requests. Unfortunately, I'm getting the following error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x61e15f78: Failure in SSL library, usually a protocol error error:1407743E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert inappropriate fallback (external/openssl/ssl/s23_clnt.c:744 0x5b647c58:0x00000000) I'm using two Fragments , inside a ViewPager ,

Randomly SSLException Unsupported record version Unknown-0.0

丶灬走出姿态 提交于 2019-11-28 21:41:01
Sometimes the code below fails and sometimes it work. I'm using Java8. Is it a server side problem? Exception in thread "main" javax.net.ssl.SSLException: Unsupported record version Unknown-0.0. EDIT: I downgrade to JDK7 from JDK8 and it works. The only solution i found that works. public static void main(String[] args) throws Exception { URL u = new URL("https://c********.web.cddbp.net/webapi/xml/1.0/"); HttpURLConnection connection = (HttpURLConnection) u.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); connection.setInstanceFollowRedirects(false); connection

Randomly SSLException Unsupported record version Unknown-0.0

旧街凉风 提交于 2019-11-27 13:14:00
问题 Sometimes the code below fails and sometimes it work. I'm using Java8. Is it a server side problem? Exception in thread "main" javax.net.ssl.SSLException: Unsupported record version Unknown-0.0. EDIT: I downgrade to JDK7 from JDK8 and it works. The only solution i found that works. public static void main(String[] args) throws Exception { URL u = new URL("https://c********.web.cddbp.net/webapi/xml/1.0/"); HttpURLConnection connection = (HttpURLConnection) u.openConnection(); connection