-
Notifications
You must be signed in to change notification settings - Fork 868
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 in WebSocketReceiver #232
Comments
I also have the same error as you. |
Looks like an issue with the Java client, somehow the thread is null. I've put a fix forward today which will be built in the Java SNAPSHOTS. (eclipse/paho.mqtt.java@adc1160) |
Is this issue resolved? I am still facing this issue in following version : What steps need to be taken to avoid this issue? |
@android-bash The fix submitted by @jpwsutton is available at version 1.2.2. I didn't check the version 1.2.1. |
mark下,升级到1.2.2版本就没有问题了,可以愉快地和js版本的websocket通信了 |
It's solved. You can use paho.mqtt.java version 1.2.5 |
Please fill out the form below before submitting, thank you!
This bug exists Release Version 1.1.1 (Java Repository Master Branch)
Also this bug exists in Snapshot Version 1.1.2-SNAPSHOT (Android Service Repository Master Branch)
The android version bug Seen on is 6
Console Log output:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Thread.join()' on a null object reference at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketReceiver.stop(WebSocketReceiver.java:85) at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketReceiver.run(WebSocketReceiver.java:120) at java.lang.Thread.run(Thread.java:818)
The text was updated successfully, but these errors were encountered: