Top "Classcastexception" questions

The Java exception thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.

Reflections IllegalArgumentException causes

UPDATE - To make the question clearer. What is the possible cause of getting a ClassCastException while calling a method …

java reflection classcastexception illegalargumentexception
CXF - ClassCastException (SEIStub/ClientProxy)

I'm trying to build a client jar file to access a webservice. I'm including the jar in a servlet/war …

java cxf classcastexception
Solution for the ClassCastException due to ClassLoader issue

I have two ClassLoaders which loads the same class. So, obviously these can't cast to one another. But I need …

java classloader classcastexception
java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl while starting the weblogic

As part of our application we are using apache's xerces jaxp parser. When we deploy the application on weblogic 9.2, we …

weblogic cxf classcastexception weblogic9.x
How to set Width and Height of FrameLayout dynamically android?

I am trying to set the width and height of 2 frame layouts which are the containers for 2 fragments, both being …

android android-fragments android-linearlayout classcastexception android-framelayout
ClassCastException LinearLayout LayoutParams

I got an Actionbar and some Fragments. The Problem is my Homescreen. There is an overview Fragment on the left …

android android-linearlayout classcastexception android-framelayout
Android: ClassCastException when adding a header view to ExpandableListView

I'm trying to add a header to an ExpandableListView like so: headerView = View.inflate(this, R.layout.header, null); expandableListView.…

android android-linearlayout expandablelistview classcastexception
ArrayList cannot be cast to Parcelable

I get following Errors: Key com..BookStatus expected Parcelable but value was a ArrayList ClassCastException: ArrayList cannot be cast to …

android classcastexception parcelable
cannot cast to java.lang.Comparable

Although this question has already been asked but I have an implementation specific doubt. I am trying to print the …

java binary-tree classcastexception tree-traversal