Re: FaultFailureException

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jun 13 2006 - 08:30:31 EDT

  • Next message: Tore Halset: "Re: Deploying N application with N x 2 databases"

    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



    This archive was generated by hypermail 2.0.0 : Tue Jun 13 2006 - 08:30:59 EDT