paho.mqtt.android icon indicating copy to clipboard operation
paho.mqtt.android copied to clipboard

java.lang.IllegalArgumentException Invalid ClientHandle

Open yongjie520 opened this issue 4 years ago • 2 comments

App Catsh

>My App crashed, and I couldn't catch the exception with try catch. The following two libraries were used

  • api 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
  • api 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' Logs java.lang.IllegalArgumentException Invalid ClientHandle 1 org.eclipse.paho.android.service.MqttService.getConnection(MqttService.java:588) 2 org.eclipse.paho.android.service.MqttService.connect(MqttService.java:328) 3 org.eclipse.paho.android.service.MqttAndroidClient.doConnect(MqttAndroidClient.java:467) 4 org.eclipse.paho.android.service.MqttAndroidClient.access$200(MqttAndroidClient.java:76) 5 org.eclipse.paho.android.service.MqttAndroidClient$1.run(MqttAndroidClient.java:435) 6 java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187) 7 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) 8 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 9 java.lang.Thread.run(Thread.java:929)

yongjie520 avatar Aug 28 '20 07:08 yongjie520

相同的问题,解决了吗

shancheli321 avatar Jan 25 '21 09:01 shancheli321

Hey!. I resol issue with
implementation('org.eclipse.paho:org.eclipse.paho.android.service:1.1.1') { exclude module: 'support-v4' transitive = true } implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'

You try this !! 

namlxcntt avatar Feb 23 '21 07:02 namlxcntt