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
Invalid ClientHandle, IllegalArgumentException #238
Comments
Any updates on this? I've been noticing some crashes in crashlytics now due to this issue. |
I'm having the same issue calling
|
Having the same issue. From the crash report:
Is this a bug with the library itself or is there a workaround? I'm fairly certain I'm handling the client object correctly as everything behaves as expected, except for these exceptions, which I have a hard time recreating. |
any update on this? |
I think this issue is not valid, as I understand such issue may occur when you try perform |
@kulebin you are right! Thanks. |
It happens rarely like for only 1% of my users, but I'm unsure as to why and when this happens? Any pointers? |
What is the ETA on this issue getting addressed, im getting this crash when i call disconnect() or unsubscribe(). This is my log: 2018-11-30 10:30:54.866 3468-3468/com.xyz.controller.core E/AndroidRuntime: FATAL EXCEPTION: main |
This issue could be reproduced if the disconnect() was called, the clientHandle in connections was removed in MqttService::disconnect() without calling MqttAndroidClient::disconnected(), so the clientHandle had a invalid value from then on. So, what I do to fix this issue is to reset clientHandle in MqttService::disconnect(). |
Hi, I have been facing this issue "randomly" until I understood the problem better. I was creating new producers everytime app sends a message, and had a static (companion) refference to the MQclient. The invalid client handle appeared because my onSuccess message tried to publish a new message with a client that was different from the IMqttToken issuer client. In more concise words, if you are executing parallel clients, be sure every client is called from the propper IMqttToken. Client must be the same that issued the token. Hopes this helps others facing the problem. |
Fixes following issues: eclipse#238 eclipse#318 eclipse#429
Please fill out the form below before submitting, thank you!
Description of Bug:
In some cases, an error occurs immediately when MQTT is connected.
Console Log output (if available):
Fatal Exception: java.lang.IllegalArgumentException Invalid ClientHandle Raw Text
| org.eclipse.paho.android.service.MqttService.getConnection (SourceFile:588)
| org.eclipse.paho.android.service.MqttService.connect (SourceFile:328)
| org.eclipse.paho.android.service.MqttAndroidClient.doConnect (SourceFile:467)
| org.eclipse.paho.android.service.MqttAndroidClient.access$002 (SourceFile:76)
| org.eclipse.paho.android.service.MqttAndroidClient$1.run (SourceFile:435)
The text was updated successfully, but these errors were encountered: