Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Lukasz Antoniak, 2 years ago
org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey
via Hibernate JIRA by lukasz.antoniak, 1 year ago
org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey
java.lang.ClassCastException: org.hibernate.cache.spi.NaturalIdCacheKey cannot be cast to org.hibernate.cache.spi.CacheKey at org.hibernate.stat.internal.ConcurrentNaturalIdCacheStatisticsImpl.getEntries(ConcurrentNaturalIdCacheStatisticsImpl.java:148)