SessionImpl.flush() has thrown a ClassCastException

We found this prefix in 2 webpages.
MapChildren (2)Typical messages (2)TraceDetailed Map
  1. java.lang.ClassCastException
    1.   at org.hibernate.event.internal.FlushVisitor.processCollection()
    2.   at org.hibernate.event.internal.AbstractVisitor.processValue()
    3.   at org.hibernate.event.internal.AbstractVisitor.processValue()
    4.   at org.hibernate.event.internal.AbstractVisitor.processEntityPropertyValues()
    5.   at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity()
    6.   at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities()
    7.   at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions()
    8.   at org.hibernate.event.internal.DefaultFlushEventListener.onFlush()
    9.   at org.hibernate.internal.SessionImpl.flush()
  1. java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to org.hibernate.collection.spi.PersistentCollection when adding an item to a collection with JSONPatch.

    First:3 years ago
    Last:2 years ago
    Author:Petar Tahchiev
  2. ClassCastException when using enhanced entities

    First:2 years ago
    Last:2 years ago
    Author:Alexander Pinske
MessageNumber of crashes
java.util.LinkedHashSet cannot be cast to org.hibernate.collection.spi.PersistentCollection1
java.util.HashSet cannot be cast to org.hibernate.collection.spi.PersistentCollection1
  1. java.lang.ClassCastException
    1.   at org.hibernate.event.internal.FlushVisitor.processCollection()
    2.   at org.hibernate.event.internal.AbstractVisitor.processValue()
    3.   at org.hibernate.event.internal.AbstractVisitor.processValue()
    4.   at org.hibernate.event.internal.AbstractVisitor.processEntityPropertyValues()
    5.   at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity()
    6.   at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities()
    7.   at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions()
    8.   at org.hibernate.event.internal.DefaultFlushEventListener.onFlush()
    9.   at org.hibernate.internal.SessionImpl.flush()