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

NPE on reconnect #2

Open
gotev opened this issue Jan 19, 2017 · 1 comment
Open

NPE on reconnect #2

gotev opened this issue Jan 19, 2017 · 1 comment

Comments

@gotev
Copy link

gotev commented Jan 19, 2017

MQTT error. RequestId: .mqtt.connect-and-subscribe/ce01d296-2595-4b6c-9a8f-967a0cfec653
MqttException (0) - java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference
    at net.igenius.mqttservice.MQTTService.onConnect(MQTTService.java:172)
    at net.igenius.mqttservice.MQTTService.run(MQTTService.java:112)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.os.HandlerThread.run(HandlerThread.java:61)
 Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference
    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.client.mqttv3.MqttClient.reconnect(MqttClient.java:524)
    at net.igenius.mqttservice.MQTTService.reconnect(MQTTService.java:186)
    at net.igenius.mqttservice.MQTTService.onConnect(MQTTService.java:166)
    at net.igenius.mqttservice.MQTTService.run(MQTTService.java:112at android.os.Handler.handleCallback(Handler.java:751at android.os.Handler.dispatchMessage(Handler.java:95at android.os.Looper.loop(Looper.java:154at android.os.HandlerThread.run(HandlerThread.java:61

References eclipse-paho#249

@jabedhasan21
Copy link

Is there any update regarding this issue.I am facing the same issue

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