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

Description

I’m using ehcache as a cacheimplementation of springframeworks springsecurity aclCache. when the maximum number of elements in memory is reached and elements are serialized to disk this exception is thrown:

2008-05-23 15:34:23,944 ERROR [net.sf.ehcache.store.DiskStore] - <aclCacheCache: Failed to write element to disk ‘9’. Initial cause was org.springframework.security.acls.jdbc.BasicLookupStrategy> java.io.NotSerializableException: org.springframework.security.acls.jdbc.BasicLookupStrategy

but the class ‘org.springframework.security.acls.jdbc.BasicLookupStrategy’ is not part of the objectgraph that is put in cache. i’ve opened the aclCache.data file in a textfile editor: this file obviously contians objects that are not part of the cached object graph.

ehcache seems to serialize any objects to disk not only those elements that are put in cache. How can that happen? I think this is a bug of ehcache not of acegi securityframework. Sourceforge Ticket ID: 1971801 - Opened By: kongokingbongo - 25 May 2008 10:26 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