ClassCastException in CommitChanges

From: Michael Schuldt (m..scensys.de)
Date: Sun Nov 16 2003 - 13:41:48 EST

  • Next message: Andrus Adamchik: "Re: ClassCastException in CommitChanges"

    After our update to cayenne version 1.02 we encounter the following error
    after reading an object, updating it, and trying to commit the changes to
    the database.

    What could be the reason for this error. I've got no idea.

    java.lang.ClassCastException
            at
    org.objectstyle.cayenne.access.SnapshotManager.takeObjectSnapshot(SnapshotMa
    nager.java:401)
            at
    org.objectstyle.cayenne.access.DataContext.takeObjectSnapshot(DataContext.ja
    va:298)
            at
    org.objectstyle.cayenne.CayenneDataObject.getCurrentSnapshot(CayenneDataObje
    ct.java:414)
            at
    org.objectstyle.cayenne.access.util.QueryUtils.updatedProperties(QueryUtils.
    java:121)
            at
    org.objectstyle.cayenne.access.ObjectStore.hasChanges(ObjectStore.java:221)
            at
    org.objectstyle.cayenne.access.DataContext.hasChanges(DataContext.java:223)
            at
    org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:70
    8)
            at
    org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:68
    9)
            at de.best4rest.boerse.DBCleanerThread.run(DBCleanerThread.java:281)
            at java.lang.Thread.run(Thread.java:536)

    Thanks

    Michael



    This archive was generated by hypermail 2.0.0 : Sun Nov 16 2003 - 13:41:57 EST