java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to br.com.gerticonsultoria.easyrentrider.model.ChatUser

Stack Overflow | Clever Almeida | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android: Loop for is getting java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast

    Stack Overflow | 8 months ago | Clever Almeida
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to br.com.gerticonsultoria.easyrentrider.model.ChatUser

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.gson.internal.LinkedTreeMap cannot be cast to br.com.gerticonsultoria.easyrentrider.model.ChatUser

      at br.com.gerticonsultoria.easyrentrider.MapActivity$1.onReceive()
    2. br.com.gerticonsultoria
      MapActivity$1.onReceive
      1. br.com.gerticonsultoria.easyrentrider.MapActivity$1.onReceive(MapActivity.java:272)
      1 frame
    3. Android Support v4
      LocalBroadcastManager$1.handleMessage
      1. android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
      2. android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
      3. android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:135)
      3. android.app.ActivityThread.main(ActivityThread.java:5254)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames