cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1378) Error unsetting to-many DataObject property
Date Tue, 09 Feb 2010 12:18:27 GMT

     [ https://issues.apache.org/jira/browse/CAY-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Razumovsky updated CAY-1378:
-----------------------------------

    Fix Version/s: 3.0RC3

> Error unsetting to-many DataObject property
> -------------------------------------------
>
>                 Key: CAY-1378
>                 URL: https://issues.apache.org/jira/browse/CAY-1378
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0RC1
>            Reporter: Victor Antonovich
>             Fix For: 3.0RC3
>
>         Attachments: 0001-CAY-1378-no-reverse-for-inheritance.patch, CAY1009SideEffectTest.patch
>
>
> Project with flattened relationships between inherited objects can't handle correctly
removing of relationship when one of objects is removed. Following patch add the testcase
which is failing in both 3.0RC1 and trunk branches with message:
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.027 sec <<<
FAILURE!
> testCAY1009SideEffect(org.apache.cayenne.UserManagerTest)  Time elapsed: 0.023 sec  <<<
ERROR!
> org.apache.cayenne.reflect.PropertyException: [v.3.0RC1 Ñ.нв 27 2010 13:48:57]
Error unsetting to-many DataObject property: roleGroups
>         at org.apache.cayenne.reflect.generic.DataObjectToManyProperty.removeTarget(DataObjectToManyProperty.java:91)
>         at org.apache.cayenne.access.DataContextDeleteAction$1.visitToMany(DataContextDeleteAction.java:212)
>         at org.apache.cayenne.reflect.generic.DataObjectToManyProperty.visit(DataObjectToManyProperty.java:111)
>         at org.apache.cayenne.access.DataContextDeleteAction.processDeleteRules(DataContextDeleteAction.java:202)
>         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.testCAY1009SideEffect(UserManagerTest.java:39)
> Caused by: java.lang.NullPointerException
>         at org.apache.cayenne.CayenneDataObject.removeToManyTarget(CayenneDataObject.java:250)
>         at org.apache.cayenne.reflect.generic.DataObjectToManyProperty.removeTarget(DataObjectToManyProperty.java:85)
>         ... 32 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message