Ehcache Core
  1. Ehcache Core
  2. EHC-842

Quietly ignore java.io.InvalidClassException

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: 2 Major 2 Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ehcache-core
    • Labels:
      None
    • Terracotta Target:
      Vicente_Holding

      Description

      Just encountered the following issue :

      2011-03-04 15:18:19,916 ERROR c.a.t.t.w.s.i.ExceptionLogger : java.io.InvalidClassException: com.accor.tars.tools.api.enterprise.chain.Chain; local class incompatible: stream classdesc serialVersionUID = 9011182591418795268, local class serialVersionUID = -7286565524645379272 from ActionInvocation class com.opensymphony.xwork2.DefaultActionInvocation
      net.sf.ehcache.CacheException: java.io.InvalidClassException: xxxxx.chain.Chain; local class incompatible: stream classdesc serialVersionUID = 9011182591418795268, local class serialVersionUID = -7286565524645379272
              at net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory.retrieve(DiskPersistentStorageFactory.java:210) ~[ehcache-core-2.3.2.jar:na]
              at net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory.retrieve(DiskPersistentStorageFactory.java:59) ~[ehcache-core-2.3.2.jar:na]
      

      It could be nice if this could be quietly (only a warn ?) ignored (at least with a new configuration parameter) and the element remove from the disk.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            gluck
            Reporter:
            Olivier Lamy
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: