Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Delivery Action erro (Cast Error)
icon4.gif  Delivery Action erro (Cast Error) [message #1717863] Thu, 17 December 2015 12:53 Go to next message
Marcelo Alves is currently offline Marcelo AlvesFriend
Messages: 2
Registered: December 2015
Junior Member
Hello,
I got a problema from paho client when its notified by Delivery Action. I could not reproduce this error, but my users are facing this error (I'm monitoring it by crashlytics) the error is:

Quote:
Caused by java.lang.ClassCastException: org.eclipse.paho.android.service.MqttTokenAndroid cannot be cast to org.eclipse.paho.client.mqttv3.IMqttDeliveryToken
at org.eclipse.paho.android.service.MqttAndroidClient.messageDeliveredAction(MqttAndroidClient.java:1232)
at org.eclipse.paho.android.service.MqttAndroidClient.onReceive(MqttAndroidClient.java:1092)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:759)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5426)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(NativeStart.java)


PS.: My app are not using this message type (Action)
I don't konw what is causing this problema. Can anyone help me on this problem?
Re: Delivery Action erro (Cast Error) [message #1717881 is a reply to message #1717863] Thu, 17 December 2015 13:48 Go to previous messageGo to next message
James Sutton is currently offline James SuttonFriend
Messages: 69
Registered: July 2015
Member
Looks like you're using an older version of the Android Service. I would recommend trying the current SNAPSHOT version to see if the problem persists.
Re: Delivery Action erro (Cast Error) [message #1717882 is a reply to message #1717881] Thu, 17 December 2015 13:53 Go to previous message
Marcelo Alves is currently offline Marcelo AlvesFriend
Messages: 2
Registered: December 2015
Junior Member
ah ok! thanks .. I will try it!
Previous Topic:Eclipse Paho MQTT Java ME 8 Client
Next Topic:Python client - subclassing
Goto Forum:
  


Current Time: Wed Sep 26 14:40:18 GMT 2018

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

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

Back to the top