java.lang.ClassCastException: org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey

Hibernate JIRA | Lukasz Antoniak | 3 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

    org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey

    at org.hibernate.stat.internal.ConcurrentNaturalIdCacheStatisticsImpl.getEntries()
  2. Hibernate
    ConcurrentNaturalIdCacheStatisticsImpl.getEntries
    1. org.hibernate.stat.internal.ConcurrentNaturalIdCacheStatisticsImpl.getEntries(ConcurrentNaturalIdCacheStatisticsImpl.java:148)
    1 frame