• Bug
  • Status: Closed
  • Resolution: Fixed
  • drb
  • Reporter: sourceforgetracker
  • September 21, 2009
  • 0
  • Watchers: 0
  • September 22, 2009
  • September 22, 2009

Description

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

Comments

Fiona OShea 2009-09-22

Re-opening so that I can properly close out these issues and have correct Resolution status in Jira