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

Stack Overflow | Clever Almeida | 6 months ago
  1. 0

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

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

    gson Convert from json to List<>

    Stack Overflow | 3 months ago | hezhujun
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.hezhujun.match.pojo.User
  3. 0
    samebug tip
    When you have no build parameters, uncheck 'This build is parameterized'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Gson being read into a LinkedTreeMap

    Stack Overflow | 1 month ago | Sh0ck
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.yasinyazici.riot.data.summoner.SummonerProperties
  6. 0

    GSON from JSON error when not finding correct object

    Stack Overflow | 2 years ago | TorK
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to testpack.GsonJson$Passenger

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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