cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <>
Subject Re: [VOTE] cayenne-3.1M1
Date Wed, 24 Nov 2010 10:34:23 GMT

Downloaded, tested in our system. Here are the things I had to change in our system:
 * Upgraded my own DataSourceFactory implementation. Now even simpler than before.
 * Switching to ServerRuntime runtime = new ServerRuntime("cayenne-mydomain.xml");. Nice!
 * One of our CayenneDataObject subclasses had a custom equals(Object) method that did not
check for the class type. This caused a ClassCastException during a commitChanges of some
deletes. Not a problem since this was a bug in our code. Here is the stacktrace:
java.lang.ClassCastException: data.Y cannot be cast to data.X
       at data.X.equals(
       at java.util.ArrayList.remove(
       at org.apache.cayenne.DataChannelSyncCallbackAction.nodeRemoved(
       at org.apache.cayenne.graph.NodeDeleteOperation.apply(
       at org.apache.cayenne.graph.CompoundDiff.apply(
       at org.apache.cayenne.access.ObjectStoreGraphDiff.apply(
       at org.apache.cayenne.DataChannelSyncCallbackAction.<init>(
       at org.apache.cayenne.DataChannelSyncCallbackAction$FlushCallbackAction.<init>(
       at org.apache.cayenne.DataChannelSyncCallbackAction.getCallbackAction(
       at org.apache.cayenne.access.DataDomain.onSync(
       at org.apache.cayenne.access.DataContext.flushToParent(
       at org.apache.cayenne.access.DataContext.commitChanges(

 - Tore.

On 17. nov. 2010, at 20.21, Andrus Adamchik wrote:


View raw message