net.sf.ehcache.CacheException: The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey()

Terracotta Project Issue Tracker | Sourceforge Tracker | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    UpdatingSelfPopulatingCache fails to call updateEntryValue( ) because it expects replacementElement.getValue() to return a class that implements Serializable interface. Specially the following line in SelfPopulatingCache.refreshElement( ) is skipped ((UpdatingCacheEntryFactory) factory).updateEntryValue(key, replacementElement.getValue()); Here is snip of the stack trace: net.sf.ehcache.CacheException: The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey() at net.sf.ehcache.Element.getValue(Element.java:244) at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.refreshElement(SelfPopulatingCache.java:183) at net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.update(UpdatingSelfPopulatingCache.java:108) at net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.get(UpdatingSelfPopulatingCache.java:79) Work around at the mement is to make 'value' class implement Serializable interface, but not sure if that is the original intention (requirement) for updating value of elements. Sourceforge Ticket ID: 2790350 - Opened By: k719 - 11 May 2009 23:02 UTC

    Terracotta Project Issue Tracker | 8 years ago | Sourceforge Tracker
    net.sf.ehcache.CacheException: The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey()
  2. 0

    UpdatingSelfPopulatingCache fails to call updateEntryValue( ) because it expects replacementElement.getValue() to return a class that implements Serializable interface. Specially the following line in SelfPopulatingCache.refreshElement( ) is skipped ((UpdatingCacheEntryFactory) factory).updateEntryValue(key, replacementElement.getValue()); Here is snip of the stack trace: net.sf.ehcache.CacheException: The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey() at net.sf.ehcache.Element.getValue(Element.java:244) at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.refreshElement(SelfPopulatingCache.java:183) at net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.update(UpdatingSelfPopulatingCache.java:108) at net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.get(UpdatingSelfPopulatingCache.java:79) Work around at the mement is to make 'value' class implement Serializable interface, but not sure if that is the original intention (requirement) for updating value of elements. Sourceforge Ticket ID: 2790350 - Opened By: k719 - 11 May 2009 23:02 UTC

    Terracotta Project Issue Tracker | 8 years ago | Sourceforge Tracker
    net.sf.ehcache.CacheException: The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey()

    Root Cause Analysis

    1. net.sf.ehcache.CacheException

      The value com.digitalimpact.catalog.assembler.cellcache.CachedCell@1a62c31 for key com.digitalimpact.catalog.assembler.cellcache.CacheKey@5c957 is not Serializable. Consider using Element#getObjectKey()

      at net.sf.ehcache.Element.getValue()
    2. Ehcache
      UpdatingSelfPopulatingCache.get
      1. net.sf.ehcache.Element.getValue(Element.java:244)
      2. net.sf.ehcache.constructs.blocking.SelfPopulatingCache.refreshElement(SelfPopulatingCache.java:183)
      3. net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.update(UpdatingSelfPopulatingCache.java:108)
      4. net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache.get(UpdatingSelfPopulatingCache.java:79)
      4 frames