[ https://issues.apache.org/jira/browse/CAY-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411968#comment-17411968 ]
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: https://issues.apache.org/jira/browse/CAY-2719 > 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(BaseContext.java:365) > at > org.apache.cayenne.BaseDataObject.beforePropertyRead(BaseDataObject.java:90) > at org.apache.cayenne.BaseDataObject.readProperty(BaseDataObject.java:103) > at com.jamesinnes.db.auto._Order.getCreatedBy(_Order.java:391) -- This message was sent by Atlassian Jira (v8.3.4#803005)