Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by krisorr
, 1 year ago
com.google.gson.internal.LinkedTreeMap cannot be cast to com.shopify.buy.model.ShopifyObject
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)