Skip to content
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

java.lang.IllegalArgumentException: Invalid ClientHandle #5

Closed
3 tasks
lucaswu57 opened this issue Nov 28, 2024 · 2 comments
Closed
3 tasks

java.lang.IllegalArgumentException: Invalid ClientHandle #5

lucaswu57 opened this issue Nov 28, 2024 · 2 comments

Comments

@lucaswu57
Copy link

Please fill out the form below before submitting, thank you!

  • Bug exists Release Version 1.1.1 (Java Repository Master Branch)
  • Bug exists in Snapshot Version 1.1.2-SNAPSHOT (Android Service Repository Master Branch)
  • Bug is just in the Sample Application.

Android API Version Bug Seen on:

Android Version Bug Seen on:

Please also check that if you have found the bug in the Release version (1.1.1) that you check that it also exists in the Snapshot (1.1.2-SNAPSHOT) before raising a bug.

Description of Bug:

在OnDestry Mqtt时有概率会出现 java.lang.IllegalArgumentException: Invalid ClientHandle的错误,在原库中有解决此问题,但是由于库已经不维护了,所以有解决方案但是没有合并进去,是否可以修改合并一个版本?
eclipse-paho#473

Console Log output (if available):

Caused by: java.lang.IllegalArgumentException: Invalid ClientHandle
at org.eclipse.paho.android.service.MqttService.getConnection(MqttService.java:589)
at org.eclipse.paho.android.service.MqttService.isConnected(MqttService.java:414)
at org.eclipse.paho.android.service.MqttAndroidClient.isConnected(MqttAndroidClient.java:255)
at com.skyworth.lib_base.data.mqtt.MQTTManager.disconnect(MQTTManager.kt:116)
at com.skyworth.module_main.ui.fragment.PlantFragment.onDestroy(PlantFragment.kt:1789)
at androidx.fragment.app.Fragment.performDestroy(Fragment.java:3251)
at androidx.fragment.app.FragmentStateManager.destroy(FragmentStateManager.java:780)

@lucaswu57
Copy link
Author

image

@mayzs
Copy link
Owner

mayzs commented Dec 6, 2024

使用 1.2.1

@mayzs mayzs closed this as completed Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants