DataContext loses resolver after serialization

From: Cris Daniluk (cris.danilu..mail.com)
Date: Fri Dec 09 2005 - 13:42:26 EST

  • Next message: Kevin Menard: "Re: Cayenne 1.2 + PostgreSQL"

    In latest CVS, DataContexts have started losing the entityResolver
    reference on deserialization, resulting in the following exception:

    java.lang.NullPointerException
            at org.objectstyle.cayenne.query.SelectQuery.resolve(SelectQuery.java:200)
            at org.objectstyle.cayenne.access.DataContextSelectAction.resolveQuery(DataContextSelectAction.java:229)
            at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:94)
            at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:89)
            at org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1249)
    ...

    It looks like writeObject isn't covering all possible cases.. I'm not
    using an alternate configuration or anything that might trigger
    weirdness. Should I open a JIRA?



    This archive was generated by hypermail 2.0.0 : Fri Dec 09 2005 - 13:42:29 EST