Re: FaultFailureException

From: Lothar Krenzien (lkrenzie..eb.de)
Date: Tue Jun 13 2006 - 11:38:55 EDT

  • Next message: Andrus Adamchik: "Re: NullPointerException in LRUMap.reuseMapping (was DataRowStore.processUpdatedSnapshots)"

    The problem went away with the solution for my previous post.

    Lothar

    > -----Ursprüngliche Nachricht-----
    > Von: cayenne-use..ncubator.apache.org
    > Gesendet: 13.06.06 14:31:07
    > An: cayenne-use..ncubator.apache.org
    > Betreff: Re: FaultFailureException

    > Most likely cause is a referential integrity problem - you have an FK
    > with no matching PK. Can happen on databases with no referential
    > constraints support (MySQL MyISAM) or when a DBA didn't bother to
    > define constraints, but there can be other reasons why data can go
    > bad. Likely not Cayenne-related.
    >
    > Andrus
    >
    >
    > On Jun 9, 2006, at 3:28 PM, Lothar Krenzien wrote:
    > > Hello,
    > >
    > > I'm using Cayenne 1.2RC1 with Java 5. Since a few days I get
    > > sometimes the following exption :
    > >
    > > org.objectstyle.cayenne.FaultFailureException: [v.1.2RC1 May 31
    > > 2006] Error resolving fault for ObjectId:
    > > <ObjectId:TblPartnerpersonId=838> and state (transient). Possible
    > > cause - matching row is missing from the database.
    > > at org.objectstyle.cayenne.access.DataContext.prepareForAccess
    > > (DataContext.java:1851)
    > > at org.objectstyle.cayenne.CayenneDataObject.readProperty
    > > (CayenneDataObject.java:238)
    > > at com.sunreader.sr2.back.auto._TblPartner.getName(Unknown Source)
    > > at com.sunreader.sr2.back.util.MapperHelper.partnerToBo(Unknown
    > > Source)
    > > at com.sunreader.sr2.back.dao.UserDAO.setAccountPersonData(Unknown
    > > Source)
    > > at com.sunreader.sr2.back.dao.UserDAO.getUser(Unknown Source)
    > >
    > >
    > > What does it mean ? Or what can I do to prevent it ?
    > >
    > > Thanks, Lothar
    >

    ______________________________________________________________
    Verschicken Sie romantische, coole und witzige Bilder per SMS!
    Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



    This archive was generated by hypermail 2.0.0 : Tue Jun 13 2006 - 11:39:21 EDT