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 16:48:34 UTC

[jira] Created: (CAY-1379) Error resolving fault, no matching row exists in the database

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.


[jira] Commented: (CAY-1379) Error resolving fault, no matching row exists in the database

Posted by "Victor Antonovich (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Closed: (CAY-1379) Error resolving fault, no matching row exists in the database

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1379.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0RC3

Thanks Victor. I applied the fix (which looks correct to me) and the test case (with some minimal refactoring). 

> 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
>             Fix For: 3.0RC3
>
>         Attachments: FaultResolutionErrFix.patch, 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.


[jira] Updated: (CAY-1379) Error resolving fault, no matching row exists in the database

Posted by "Victor Antonovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Antonovich updated CAY-1379:
-----------------------------------

    Attachment: FaultResolutionErrFix.patch

Proposed bugfix patch.

> 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: FaultResolutionErrFix.patch, 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.


[jira] Updated: (CAY-1379) Error resolving fault, no matching row exists in the database

Posted by "Victor Antonovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Antonovich updated CAY-1379:
-----------------------------------

    Attachment: FaultResolutionErrTest.patch

Failing testcase.

> 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.