• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
excludeObjectFromPropertyWithKey failed faulting...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

excludeObjectFromPropertyWithKey failed faulting...


  • Subject: excludeObjectFromPropertyWithKey failed faulting...
  • From: Lachlan Deck <email@hidden>
  • Date: Wed, 16 Jan 2008 11:49:26 +1100

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: WOComponent children
  • Next by Date: Re: Avoiding duplicate records
  • Previous by thread: Re: Avoiding duplicate records
  • Next by thread: How to avoid wrong mapping after new object inserted
  • Index(es):
    • Date
    • Thread