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.
This archive was generated by hypermail 2.0.0 : Mon Nov 05 2007 - 05:06:18 EST