java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.hibernate.collection.spi.PersistentCollection

Hibernate JIRA | Jethro Bakker | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.ArrayList cannot be cast to org.hibernate.collection.spi.PersistentCollection

      at org.hibernate.envers.entities.mapper.relation.AbstractCollectionMapper.mapModifiedFlagsToMapFromEntity()
    2. A Hibernate O/RM Module
      AddWorkUnit.<init>
      1. org.hibernate.envers.entities.mapper.relation.AbstractCollectionMapper.mapModifiedFlagsToMapFromEntity(AbstractCollectionMapper.java:142)
      2. org.hibernate.envers.entities.mapper.MultiPropertyMapper.map(MultiPropertyMapper.java:89)
      3. org.hibernate.envers.synchronization.work.AddWorkUnit.<init>(AddWorkUnit.java:49)
      3 frames