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

Terracotta | laowai | 7 years ago
  1. 0

    ClassCastException when calling SecondLevelCacheStatistics.getEntries() under ehCache + Terracotta

    Terracotta | 7 years ago | laowai
    java.lang.ClassCastException: java.lang.String cannot be cast to org.hibernate.cache.CacheKey
  2. 0

    Query Level 2 Caching throwing ClassCastException

    Stack Overflow | 6 years ago | Sameer Malhotra
    java.lang.ClassCastException: org.hibernate.cache.QueryKey incompatible with org.hibernate.cache.CacheKey
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to org.hibernate.cache.CacheKey

      at org.hibernate.stat.SecondLevelCacheStatistics.getEntries()
    2. Hibernate
      SecondLevelCacheStatistics.getEntries
      1. org.hibernate.stat.SecondLevelCacheStatistics.getEntries(SecondLevelCacheStatistics.java:74)
      1 frame