Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: excludeObjectFromPropertyWithKey weird error



No. Has your model changed and the Java not been regenerated? The only other thing I can think of is a bad call to takeValueForKey on this EO that is overwriting sessions() with something else. Try overriding setSessions to log a stack trace if the value is not instanceof NSArray.

Chuck

On Jul 27, 2007, at 12:43 AM, Lachlan Deck wrote:

Hi there,

anyone seen something similar to the below before?

with regards,
--

Lachlan Deck
email@hidden

java.lang.IllegalArgumentException: removeObjectToPropertyWithKey: the key sessions is not a Array or one of its subclasses - unable to remove the value.
at com.webobjects.eocontrol.EOCustomObject.excludeObjectFromPropertyWithK ey(EOCustomObject.java:987)
at com.ish.willow.eoaccess.model._CourseClass.removeFromSessions (_CourseClass.java:560)
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.removeObjectFromPropertyWithKe y(EOCustomObject.java:1011)
at com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelation shipWithKey(EOCustomObject.java:1066)


with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >excludeObjectFromPropertyWithKey weird error (From: Lachlan Deck <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.