java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.shopify.buy.model.ShopifyObject

GitHub | krisorr | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Crash on backing out of Product Details Screen

    GitHub | 9 months ago | krisorr
    java.lang.ClassCastException: com.google.gson.internal.LinkedTreeMap cannot be cast to com.shopify.buy.model.ShopifyObject

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.gson.internal.LinkedTreeMap cannot be cast to com.shopify.buy.model.ShopifyObject

      at com.shopify.merchantapp.ui.common.recyclerview.CommonAdapter.onBindViewHolder()
    2. com.shopify.merchantapp
      ProductListAdapter.onBindViewHolder
      1. com.shopify.merchantapp.ui.common.recyclerview.CommonAdapter.onBindViewHolder(CommonAdapter.java:68)
      2. com.shopify.merchantapp.ui.products.ProductListAdapter.onBindViewHolder(ProductListAdapter.java:71)
      3. com.shopify.merchantapp.ui.products.ProductListAdapter.onBindViewHolder(ProductListAdapter.java:19)
      3 frames
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)
      2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5504)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4741)
      4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)
      5. android.support.v7.widget.LayoutState.next(LayoutState.java:100)
      6. android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1538)
      7. android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:657)
      8. android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:592)
      9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
      10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
      11. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283)
      11 frames
    4. Android Platform
      Choreographer$CallbackRecord.run
      1. android.view.View.layout(View.java:15745)
      2. android.view.ViewGroup.layout(ViewGroup.java:4868)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      5. android.view.View.layout(View.java:15745)
      6. android.view.ViewGroup.layout(ViewGroup.java:4868)
      7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      8. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      9. android.view.View.layout(View.java:15745)
      10. android.view.ViewGroup.layout(ViewGroup.java:4868)
      11. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
      12. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
      13. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
      14. android.view.View.layout(View.java:15745)
      15. android.view.ViewGroup.layout(ViewGroup.java:4868)
      16. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      17. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      18. android.view.View.layout(View.java:15745)
      19. android.view.ViewGroup.layout(ViewGroup.java:4868)
      20. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
      21. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
      22. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
      23. android.view.View.layout(View.java:15745)
      24. android.view.ViewGroup.layout(ViewGroup.java:4868)
      25. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      26. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      27. android.view.View.layout(View.java:15745)
      28. android.view.ViewGroup.layout(ViewGroup.java:4868)
      29. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
      30. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
      31. android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
      32. android.view.View.layout(View.java:15745)
      33. android.view.ViewGroup.layout(ViewGroup.java:4868)
      34. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      35. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      36. android.view.View.layout(View.java:15745)
      37. android.view.ViewGroup.layout(ViewGroup.java:4868)
      38. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2333)
      39. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2046)
      40. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)
      41. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6585)
      42. android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)
      42 frames