Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:19 Go to next message
Shailendra Yadav is currently offline Shailendra YadavFriend
Messages: 1
Registered: June 2017
Junior Member
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 14:40 Go to previous message
James Sutton is currently offline James SuttonFriend
Messages: 71
Registered: July 2015
Member
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: Fri Apr 26 23:53:50 GMT 2024

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

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

Back to the top