cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (Jira)" <>
Subject [jira] [Commented] (CAY-2719) FaultFailureException Accessing Field of DB Object
Date Wed, 08 Sep 2021 14:33:00 GMT


Nikita Timofeev commented on CAY-2719:

Hi [~hvass]!
Thanks for another report!

In general, this exception means that there's no data for the object with a given id, and
it's thrown when Cayenne tries to resolve a {{Fault}} object. There should be no recent changes
in that part.

I could see something strange with this object's ID, as there's custom {{toString()}} output.
Are you using some custom ObjectId implementation? Or it's just debugging info left there?

If you could isolate this faulty object, you could check that it's {{ObjectId}} returns correct
info in a {{getIdSnapshot()}} call and that corresponding data is in DB.

> FaultFailureException Accessing Field of DB Object
> --------------------------------------------------
>                 Key: CAY-2719
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.2.B1
>            Reporter: Peter Hvass
>            Assignee: Nikita Timofeev
>            Priority: Minor
>             Fix For: 4.2.B1
> I've tried to debug this issue myself but am not having any luck - submitting as an issue
on the off-chance that there might be a bug in the snapshot build we're running. Thank you
as always for this fantastic project.
> The field Order.CREATED_BY in the auto-generated bean is a timestamp/date.
> Stack trace:
> org.apache.cayenne.FaultFailureException: [v.4.2.M4-SNAPSHOT Aug 13 2021 14:42:16] Error
resolving fault, no matching row exists in the database for ObjectId:++
>  at org.apache.cayenne.BaseContext.prepareForAccess(
>  at org.apache.cayenne.BaseDataObject.beforePropertyRead(
>  at org.apache.cayenne.BaseDataObject.readProperty(
>  at

This message was sent by Atlassian Jira

View raw message