-
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
Getting Stack over flow error #425
Comments
hey @emilpradeep, could you tell me which version you use? Greetings |
I am getting this issue too, I am using this version (org.java-websocket:Java-WebSocket:1.3.0). |
Hello @simonchius, Right now I cannot reproduce it :( Also try to build the jar directly from the sources. I merged some fixes there. Greetings |
@marci4 @simonchius please refer to #190 . I fixed the issue with @Erhannis solution |
@emilpradeep do I understand you correct that this issue is fixed right now using the lastest sources? Greetings |
yes, the issue is fixed for me. |
Yes :) Greetings |
So as my understanding, If i update to latest version, this issue will be fixed. Am i right? |
Right now there is no update available in the maven repository (I don't have access to it). So you need to build the jar directly from the sources (see README) Greetings |
@simonchius I updated the readme with the new maven repository etc Please check it out :) Greetings |
@marci4 Thanks for the update, I will check out. |
@marci4 It seems org.java-websocket:java-websocket:1.3.2 is not resolved. Can you please check that? |
Hello @simonchius, a different user mentioned here that you maybe need to clear the cache of your IDE and restart it Hope this fixes it for you. |
Hi @marci4 I tried clear cache and restarting Android Studio. Nothing is working. Still not working. |
hello @simonchius, could you maybe add the following line to the start of your build If this is not working, could you please send me your full build script. Greetings |
Hi @marci4 apply plugin:'java' is not compatible with Android. You can check my build script apply plugin: 'com.android.application' android {
} dependencies { apply plugin: 'com.google.gms.google-services' |
Hello @emilpradeep please add the following lines to your build script
Greetings |
Hi @marci4, Issue with building gradle is fixed, But setWebSocketFactory and DefaultSSLWebSocketClientFactory not found mWebSocketClient.setWebSocketFactory( new DefaultSSLWebSocketClientFactory( sslContext ) ); Since I am using wss, It was throwing SSL exception, So I added SSL Context manually like below SSLContext sslContext = null;
Now setWebSocketFactory and DefaultSSLWebSocketClientFactory not found.. Pls check this. |
Hello, Check this example when you wanna use a ssl context. Greetings |
Issue is clearly solved. Closing issue. |
E/AndroidRuntime: FATAL EXCEPTION: Thread-1415
Process: com.example, PID: 5182
java.lang.StackOverflowError
at com.android.org.conscrypt.OpenSSLCipher.getOutputSize(OpenSSLCipher.java:201)
at com.android.org.conscrypt.OpenSSLCipher.engineGetOutputSize(OpenSSLCipher.java:213)
at javax.crypto.Cipher.getOutputSize(Cipher.java:402)
at com.android.org.conscrypt.ConnectionState.getMinFragmentSize(ConnectionState.java:69)
at com.android.org.conscrypt.SSLRecordProtocol.getMinRecordSize(SSLRecordProtocol.java:134)
at com.android.org.conscrypt.SSLEngineImpl.unwrap(SSLEngineImpl.java:434)
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:383)
at org.java_websocket.SSLSocketChannel2.unwrap(SSLSocketChannel2.java:150)
at org.java_websocket.SSLSocketChannel2.readRemaining(SSLSocketChannel2.java:254)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:220)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_websocket.SSLSocketChannel2.read(SSLSocketChannel2.java:241)
at org.java_web
The text was updated successfully, but these errors were encountered: