You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Victor Antonovich (JIRA)" <ji...@apache.org> on 2010/01/27 17:14:34 UTC
[jira] Commented: (CAY-1379) Error resolving fault, no matching row
exists in the database
[ https://issues.apache.org/jira/browse/CAY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805558#action_12805558 ]
Victor Antonovich commented on CAY-1379:
----------------------------------------
Looks like Cayenne incorrectly resolve faults under some conditions. In attached testcase dataobjects in inheritance tree (Roles/Users/Groups) are linked to groups by flattened relationships. At some moment (after performing SelectQuery, see testcase) modified but uncommitted DataObject change initial null values of to-one relationships to nonexistent (hollow?) objects. Trying to delete those objects causes error.
> Error resolving fault, no matching row exists in the database
> -------------------------------------------------------------
>
> Key: CAY-1379
> URL: https://issues.apache.org/jira/browse/CAY-1379
> Project: Cayenne
> Issue Type: Bug
> Affects Versions: 3.0RC1
> Reporter: Victor Antonovich
> Attachments: FaultResolutionErrTest.patch
>
>
> Following testcase fail with error:
> org.apache.cayenne.FaultFailureException: [v.3.0RC1 Ñ.нв 27 2010 15:28:50] Error resolving fault, no matching row exists in the database for ObjectId: <ObjectId:GroupProperties, id=201>
> at org.apache.cayenne.BaseContext.prepareForAccess(BaseContext.java:152)
> at org.apache.cayenne.access.DataContextDeleteAction.performDelete(DataContextDeleteAction.java:86)
> at org.apache.cayenne.access.DataContextDeleteAction.processDeleteRules(DataContextDeleteAction.java:236)
> at org.apache.cayenne.access.DataContextDeleteAction.deletePersistent(DataContextDeleteAction.java:107)
> at org.apache.cayenne.access.DataContextDeleteAction.performDelete(DataContextDeleteAction.java:92)
> at org.apache.cayenne.access.DataContext.deleteObject(DataContext.java:931)
> at org.apache.cayenne.UserManagerTest.testGroupActions(UserManagerTest.java:53)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.