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 niftynei
, 1 year ago
com.zulip.android.viewholders.MessageHeaderParent cannot be cast to com.zulip.android.models.Message
java.lang.ClassCastException: com.zulip.android.viewholders.MessageHeaderParent cannot be cast to com.zulip.android.models.Message	at com.zulip.android.activities.RecyclerMessageAdapter.onViewRecycled(RecyclerMessageAdapter.java:312)	at android.support.v7.widget.RecyclerView$Recycler.dispatchViewRecycled(RecyclerView.java:5468)	at android.support.v7.widget.RecyclerView$Recycler.addViewHolderToRecycledViewPool(RecyclerView.java:5233)	at android.support.v7.widget.RecyclerView$Recycler.recycleCachedViewAt(RecyclerView.java:5163)	at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5207)	at android.support.v7.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1154)	at android.support.v7.widget.RecyclerView.access$6400(RecyclerView.java:151)	at android.support.v7.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:10727)	at android.support.v7.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:11227)	at android.support.v7.widget.SimpleItemAnimator.dispatchMoveFinished(SimpleItemAnimator.java:279)	at android.support.v7.widget.DefaultItemAnimator$6.onAnimationEnd(DefaultItemAnimator.java:303)	at android.support.v4.view.ViewPropertyAnimatorCompatJB$1.onAnimationEnd(ViewPropertyAnimatorCompatJB.java:47)	at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1114)	at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239)	at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766)	at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801)	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)	at android.view.Choreographer.doCallbacks(Choreographer.java:670)	at android.view.Choreographer.doFrame(Choreographer.java:603)	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)	at android.os.Handler.handleCallback(Handler.java:739)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5422)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)