-
Notifications
You must be signed in to change notification settings - Fork 369
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
NullPointerExecption #94
Comments
The same. during: |
@laviua I have replace this sdk with paho.mqtt.java, and it works well. |
@VolodymyrCj, yes, i know ) |
this because of the signal of wifi is not stable. mqtt will reconnect frequent,and cause the thread stack overflow. mqtt.setConnectAttemptsMax(10L); but it does't work. |
You can judge the network status
|
E/AndroidRuntime: FATAL EXCEPTION: hawtdispatch-DEFAULT-2
Process: personal.zach.gprsdemo, PID: 18304
java.lang.NullPointerException: Attempt to invoke interface method 'boolean org.fusesource.hawtdispatch.transport.Transport.offer(java.lang.Object)' on a null object reference
at org.fusesource.mqtt.client.CallbackConnection$7.run(CallbackConnection.java:450)
at org.fusesource.hawtdispatch.transport.HeartBeatMonitor$3.run(HeartBeatMonitor.java:87)
at org.fusesource.hawtdispatch.transport.HeartBeatMonitor$1.run(HeartBeatMonitor.java:65)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
The text was updated successfully, but these errors were encountered: