Hi there,
any ideas on what would cause the below exception? It's throwing an
IllegalArgumentException because excludeObjectFromPropertyWithKey is
not getting an instance of NSArray when attempting to obtain the
valueForKey of a toMany key.
is this a missing willRead[Relationship]() or something from the
deferred faulting?
excludeObjectFromPropertyWithKey calls 'valueForKey' which I can only
assume is returning null from the toMany key.
i.e., if the key is "toManyKey" and in my _EntityClass.java it's
found like this:
public NSArray toManyKey() {
return ( NSArray )storedValueForKey( ToManyKey );
}
Any tips on how to force storedValueForKey to retrieve the value?
with regards,
--
Lachlan Deck
java.lang.IllegalArgumentException: removeObjectToPropertyWithKey:
the key toManyKey is not a Array or one of its subclasses - unable to
remove the value.
at
com.webobjects.eocontrol.EOCustomObject.excludeObjectFromPropertyWithKey
(EOCustomObject.java:987)
at er.extensions.ERXGenericRecord.excludeObjectFromPropertyWithKey
(ERXGenericRecord.java:892)
at com.ish.willow.eoaccess.model._MyEntity.removeFromMyToManyKey
(_MyEntity.java:397)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at
com.webobjects.eocontrol.EOCustomObject.removeObjectFromPropertyWithKey(
EOCustomObject.java:1011)
at
com.webobjects.eocontrol.EOClassDescription.propagateDeleteForObject
(EOClassDescription.java:478)
at
com.webobjects.eocontrol.EOCustomObject.propagateDeleteWithEditingContex
t(EOCustomObject.java:688)
at
com.webobjects.eocontrol.EOEditingContext.propagateDeletesUsingTable
(EOEditingContext.java:2231)
at com.webobjects.eocontrol.EOEditingContext._processDeletedObjects
(EOEditingContext.java:2193)
at com.webobjects.eocontrol.EOEditingContext._processRecentChanges
(EOEditingContext.java:1744)
at com.webobjects.eocontrol.EOEditingContext.processRecentChanges
(EOEditingContext.java:1951)
at er.extensions.ERXEC.processRecentChanges(ERXEC.java:616)
at er.extensions.ERXEnterpriseObject
$Observer.editingContextWillSaveChanges(ERXEnterpriseObject.java:41)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod
(NSNotificationCenter.java:601)
at com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:545)
at com.webobjects.foundation.NSNotificationCenter.postNotification
(NSNotificationCenter.java:559)
at er.extensions.ERXEC.saveChanges(ERXEC.java:861)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]