java.lang.ClassCastException

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

Solutions on the web19043

  • com.google.gson.internal.LinkedTreeMap cannot be cast to com.shopify.buy.model.ShopifyObject
  • via Stack Overflow by CutePander
    , 1 year ago
    com.google.gson.internal.LinkedTreeMap cannot be cast to com.teco.powercloud.network.TecomPPAccountInfo
  • com.google.gson.internal.LinkedTreeMap cannot be cast to ParseJson$A
  • Stack trace

    • 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(CommonAdapter.java:68) at com.shopify.merchantapp.ui.products.ProductListAdapter.onBindViewHolder(ProductListAdapter.java:71) at com.shopify.merchantapp.ui.products.ProductListAdapter.onBindViewHolder(ProductListAdapter.java:19) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5504) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4741) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617) at android.support.v7.widget.LayoutState.next(LayoutState.java:100) at android.support.v7.widget.StaggeredGridLayoutManager.fill(StaggeredGridLayoutManager.java:1538) at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:657) at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:592) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3283) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531) at android.widget.LinearLayout.onLayout(LinearLayout.java:1440) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531) at android.widget.LinearLayout.onLayout(LinearLayout.java:1440) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531) at android.widget.LinearLayout.onLayout(LinearLayout.java:1440) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) at android.widget.FrameLayout.onLayout(FrameLayout.java:388) at android.view.View.layout(View.java:15745) at android.view.ViewGroup.layout(ViewGroup.java:4868) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2333) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2046) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6585) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.