TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

ClassCastException for UnixSocketAddress #184

Closed saeedmozaffari closed 5 years ago

saeedmozaffari commented 5 years ago

Hi, unfortunately this error happened multiple time in my app. about 10 thousand times for 5 thousand users. and 99% of these errors happen for android version 8 and 96% are for samsung users.

Fatal Exception: java.lang.ClassCastExceptionandroid.system.UnixSocketAddress cannot be cast to java.net.InetSocketAddress Raw Text
--
  | libcore.io.IoBridge.getLocalInetSocketAddress (IoBridge.java:700)
  | com.android.org.conscrypt.OpenSSLSocketImpl.connect (OpenSSLSocketImpl.java:265)
  | com.neovisionaries.ws.client.SocketConnector.doConnect (SocketConnector.java:94)
  | com.neovisionaries.ws.client.SocketConnector.connect (SocketConnector.java:72)
  | com.neovisionaries.ws.client.WebSocket.connect (WebSocket.java:1938)
  | net.iGap.WebSocketClient$2.run (WebSocketClient.java:148)
  | java.lang.Thread.run (Thread.java:764)
Screen Shot 2019-06-12 at 12 21 01 PM
saeedmozaffari commented 5 years ago

seems to fixed this issue with update OKHttp lib from 3.9.0 to 3.12.1