AbstractVisitor.processValue() has thrown a ClassCastException

java.lang.ClassCastException
Javadoc
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:
    Object x = new Integer(0);
    System.out.println((String)x);
@author unascribed @since JDK1.0
at org.hibernate.event.def.DirtyCollectionSearchVisitor.processCollection
(source)
at org.hibernate.event.def.AbstractVisitor.processValue
(source)
at org.hibernate.event.def.AbstractVisitor.processValue
(source)

Typical Exception Messages

  1. org.dom4j.tree.DefaultElement cannot be cast to org.hibernate.collection.PersistentCollection
  2. org.dom4j.tree.DefaultElement

External results for this pattern (2)

  1. Winston Huangvia Hibernate JIRA5 months ago
  2. Unknown authorvia java2s.com5 months ago
    org.dom4j.tree.DefaultElement cannot be cast to org.hibernate.collection.PersistentCollection
    Show stack trace