[jira] Created: (CAY-1053) MapQueryCache.CacheEntry not serializable

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Fri May 09 2008 - 07:10:52 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Closed: (CAY-1053) MapQueryCache.CacheEntry not serializable"

    MapQueryCache.CacheEntry not serializable
    -----------------------------------------

                     Key: CAY-1053
                     URL: https://issues.apache.org/cayenne/browse/CAY-1053
                 Project: Cayenne
              Issue Type: Bug
              Components: Cayenne Core Library
        Affects Versions: 3.0
                Reporter: Andrus Adamchik
                Assignee: Andrus Adamchik
                Priority: Minor
                 Fix For: 3.0

    As reported by the users, deserializaing DataContext causes the following exception:

    SEVERE: IOException while loading persisted sessions:
    java.io.WriteAbortedException: writing aborted;
    java.io.NotSerializableException:
    org.apache.cayenne.cache.MapQueryCache$CacheEntry
    java.io.WriteAbortedException: writing aborted;
    java.io.NotSerializableException:
    org.apache.cayenne.cache.MapQueryCache$CacheEntry
           at
    java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)

    This is caused by a local cache map holding entries that are not serializable. I can easily reproduce it in a unit test

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Fri May 09 2008 - 07:11:17 EDT