-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException for SSL Connection on Android #413
Comments
We are having this exact same issue! |
Same, any idea on why this happens? |
Hello @yasserf, could you provide me with a test application where I can try to fix this problem. Greetings |
possible cause #424 |
@erobic @rhlff could you provide me a test application? |
Unfortunately, I couldn't reproduce the issue on any of my debug devices or the emulator yet. I got the error logs from the Google Play Console. |
Hello @rhlff, I changed some code with #488. Hope to resolve those issues with these changes! Greetings |
Hi @marci4, I already updated our app to version 1.3.3 and I will monitor if the issue will appear again. Hope for the best :) |
i am using socket 0.9 connection and for that i am using https://github.com/Gottox/socket.io-java-client with javewebsocket 1.3.3 jar and getting issue is some devices ; Fatal Exception: java.lang.NullPointerExceptionssl == null Raw Text | com.android.org.conscrypt.NativeCrypto.SSL_write_BIO (NativeCrypto.java) i am not getting the reason why is it happening , can anyone help for that to resolved this? 07-29 02:43:50.077 7325-8261/com.sockettollnate W/System.err: at com.sockettollnate.socket.WebsocketTransport.onMessage(WebsocketTransport.java:188) |
Hello @arpitjoshi08, first of all I have no idea if https://github.com/Gottox/socket.io-java-client is implementing the websocket protocol correctly. So there also may be issues there? Could you please tell me on what specific device versions you are getting this error? Does this only happen in production or also in the emulator? 1.3.4 introduces a feature which detects if the other endpoint is not reachable any more (due to dropped internet etc), so in short all the connections got lost but the underlaying runtime did not detect it on its own. Greetings |
hii @marci4 , i am getting issue in samsung SM-G570F (6.0) device (with 1.3.3). and if using 1.3.4 jar i am getting issue Gottox/socket.io-java-client#4 so thats why |
Hello @arpitjoshi08, I will try to test this in an emulator if I got the time on the weekend. Apart from this, no there is no example application for the socket.io-java-client. Maybe get in contact to the maintainer to help you with your issue! Greetings |
No feedback! If you still ave this issue, please open a separate issue! |
Hi,
I'm using the
WebSocketClient
in an Android app and I receive the followingNullPointerException
from some users:The exception was thrown on different devices and different versions of Android. I use the following configuration to initiate the secured WebSocket connection:
I couldn't reproduce the issue on my debug devices. Any idea how I can avoid this or why it crashes sometimes? Can I catch the exception somehow? Looks like it is deeply nested in the library or Android itself.
Thanks
The text was updated successfully, but these errors were encountered: