Hi, I think there's a wrong behaivour in 1.0 rc5. (with 1.0 rc4 it works well)
I have an Object with holds a collection of other objects the loading of the collection is realized wih "proxy=true" The Class Descriptor is correct (it works with 1.0 rc4) public class SecondObject { int pkey; ..... } public class FirstObject { int pkey; .... Collection manySecondObjects; } If I do the following: <code> Collection firstObjects = firstObjectPeer.getAll(); // .. get 1 Object from Collection (Iterator code missing, only for understanding) FirstObject firstObject = (FirstObject)firstObjects.next(); Iterator i = firstObject .getManySecondObjects().iterator(); //here comes the Exception with 1.0 rc5 //do anything with every second Object //... </code> If I try to get the Iterator for "ManySecondObjects" it works well with 1.0 rc4 but with 1.0 rc5 it throws an exception (see below) It seems to be, that the proxy dynamic loads works not in any case but if i catch it and ask again for the Iterator <code> Iterator i = firstObject .getManySecondObjects().iterator(); </code> it works It looks like: Trying once to load the collections throws the exception but also sets a setting in the right way, so the second try works. but if I load again the firstObject, it does not work, at the first time trying to access the collection, only at the second time (and all following tries) Maybe I am doing sth. wrong or maybe someone could confirm this behaivour. Exception with 1.0 rc5 org.apache.ojb.broker.PersistenceBrokerException java.lang.ClassCastException at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.ad dThisListenerTo(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBPrefetchingListener.prefet ch(Unknown Source) at org.apache.ojb.broker.core.QueryReferenceBroker$PBCollectionProxyListener.be foreLoading(Unknown Source) at org.apache.ojb.broker.accesslayer.CollectionProxy.beforeLoading(Unknown Source) at org.apache.ojb.broker.accesslayer.CollectionProxy.loadData(Unknown Source) at org.apache.ojb.broker.accesslayer.ListProxy.loadData(Unknown Source) at org.apache.ojb.broker.accesslayer.CollectionProxy.getData(Unknown Source) at org.apache.ojb.broker.accesslayer.CollectionProxy.iterator(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]