DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId() 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.type.descriptor.java.JdbcTimestampTypeDescriptor$TimestampMutabilityPlan.deepCopyNotNull
(source)
at org.hibernate.type.descriptor.java.MutableMutabilityPlan.deepCopy
(source)
at org.hibernate.type.AbstractStandardBasicType.deepCopy
(source)
at org.hibernate.type.AbstractStandardBasicType.deepCopy
(source)
at org.hibernate.type.TypeHelper.deepCopy
(source)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate
(source)
at org.hibernate.event.def.AbstractSaveEventListener.performSave
(source)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId
(source)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId
(source)
8 frames hidden

Typical Exception Messages

  1. java.util.GregorianCalendar cannot be cast to java.util.Date

External results for this pattern (2)

  1. Unknown authorvia eclipse.org5 months ago
    java.util.GregorianCalendar cannot be cast to java.util.Date
    Show stack trace
  2. Unknown authorvia eclipse.org6 months ago
    java.util.GregorianCalendar cannot be cast to java.util.Date
    Show stack trace