Skip to main content



      Home
Home » Eclipse Projects » Paho » Android Paho client crashing on connectivity change(v1.1.1)
Android Paho client crashing on connectivity change [message #1765390] Fri, 09 June 2017 03:19 Go to next message
Eclipse UserFriend
Our App is crashing whenever the connectivity of device is changing, please find out the stacktrace log below

java.lang.RuntimeException:
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:876)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method:0)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:702)
Caused by: java.lang.NullPointerException:
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.stopReconnectCycle(MqttAsyncClient.java:1120)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.reconnect(MqttAsyncClient.java:1057)
at org.eclipse.paho.android.service.MqttConnection.reconnect(MqttConnection.java:1049)
at org.eclipse.paho.android.service.MqttService.reconnect(MqttService.java:342)
at org.eclipse.paho.android.service.MqttService$NetworkConnectionIntentReceiver.onReceive(MqttService.java:827)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:866)
Re: Android Paho client crashing on connectivity change [message #1765445 is a reply to message #1765390] Fri, 09 June 2017 10:40 Go to previous message
Eclipse UserFriend
Hi,

Does the same thing happen if you use our snapshot build? https://github.com/eclipse/paho.mqtt.android/tree/develop
Previous Topic:Custom OpenSSL Authentication in C?
Next Topic:Delete me
Goto Forum:
  


Current Time: Thu Jun 12 22:10:10 EDT 2025

Powered by FUDForum. Page generated in 0.04436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top