java.lang.ClassCastException: com.xxx.yyy.models.BaseModel cannot be cast to com.xxx.yyy.models.LandingPagePromoList

GitHub | ericn37 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 78#254108191

    GitHub | 6 months ago | ericn37
    java.lang.ClassCastException: com.xxx.yyy.models.BaseModel cannot be cast to com.xxx.yyy.models.LandingPagePromoList

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.xxx.yyy.models.BaseModel cannot be cast to com.xxx.yyy.models.LandingPagePromoList

      at com.xxx.yyy.tasks.LandingPageTask$1.onResponse()
    2. com.xxx.yyy
      LandingPageTask$1.onResponse
      1. com.xxx.yyy.tasks.LandingPageTask$1.onResponse(LandingPageTask.java:35)
      1 frame
    3. retrofit2
      ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run
      1. retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5417)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames