You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2007/11/05 11:19:50 UTC
[JIRA] Closed: (CAY-913) ToMany Map relationships cause
ClassCastExceptions on commit when the source is Fault
[ https://issues.apache.org/cayenne/browse/CAY-913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-913.
-------------------------------
Resolution: Fixed
> ToMany Map relationships cause ClassCastExceptions on commit when the source is Fault
> -------------------------------------------------------------------------------------
>
> Key: CAY-913
> URL: https://issues.apache.org/cayenne/browse/CAY-913
> Project: Cayenne
> Issue Type: Bug
> Affects Versions: 3.0
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
> Priority: Minor
> Fix For: 3.0
>
>
> Related to the recent new feature CAY-848... In some cases commit fails with this error. The fault referred in the stack is a source of the to-many map relationship.
> Caused by: java.lang.ClassCastException: org.apache.cayenne.access.ToOneFault
> at org.apache.cayenne.reflect.generic.DataObjectBaseProperty.toDataObject(DataObjectBaseProperty.java:96)
> at org.apache.cayenne.reflect.generic.DataObjectBaseProperty.readPropertyDirectly(DataObjectBaseProperty.java:69)
> at org.apache.cayenne.reflect.generic.DataObjectToManyProperty.isFault(DataObjectToManyProperty.java:105)
> at org.apache.cayenne.access.DataDomainSyncBucket.postprocess(DataDomainSyncBucket.java:248)
> at org.apache.cayenne.access.DataDomainFlushAction.postprocess(DataDomainFlushAction.java:240)
> at org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:148)
> at org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:827)
> at org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:794)
> at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:853)
> at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:791)
> at org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:1170)
> ... 68 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.