Re: DataContext loses resolver after serialization

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Dec 10 2005 - 05:50:11 EST

  • Next message: Andrus Adamchik: "Re: Cayenne 1.2 + PostgreSQL"

    Just fixed it. Thanks!

    Andrus

    On Dec 9, 2005, at 9:42 PM, Cris Daniluk wrote:

    > 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 : Sat Dec 10 2005 - 05:50:16 EST