Re: IntegralKey
Re: IntegralKey
- Subject: Re: IntegralKey
- From: email@hidden
- Date: Wed, 05 Nov 2003 12:49:33 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
I think you are misinterpreting what's going on. In that toString()
output of what you believe should be a User object, it begins "<User...
". That means it is indeed a User EO. It may (or may not) be a User EO
that has not yet loaded it's values from the db (a "fault" in EOF
terminology), but it is a User EO. The _EOIntegralKey stuff is just the
class that EOF uses to basically store the pk of the object, don't worry
about that too much here. The cause of the problem is not what you think.
Now, the actual problem.... "removeObjectToPropertyWithKey: the key
tasks is not a Array or one of its subclasses - unable to remove the
value." I'm afraid I'm not sure what's up with that. I too have seen
that error occasionally in my logs, I've never been able to reproduce it
on demand, I haven't been able to figure out what causes it.
If you are able to reproduce it on demand, it should be easier to
diagnose. First thing to check is that you aren't doing anything that
goes against what EOF expects. See:
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?wikiPage=EOFCommandments
--Jonathan
On Tue, 4 Nov 2003 21:46:37 -0500 "Mark W. Shead" wrote:
> I'm working on an application that has Tasks and Users. Each Task can
> have on user assigned to it. I'm running into some problems because
> when I assign a user to a Task everything works just fine for a while,
> but then the user is changed from being a user object to something
> like:
>
> <User b14efc _EOIntegralKeyGlobalID[User (java.math.BigDecim.....>
>
> I've checked the actual data in the database and everything is the way
> I would expect it to be.
>
> I'm using D2W to look at the data to trouble shoot. If I try to set
> the correct user using D2W I get:
>
> java.lang.IllegalArgumentException: removeObjectToPropertyWithKey: the
> key tasks is not a Array or one of its subclasses - unable to remove
> the value.
>
> Reason:
> removeObjectToPropertyWithKey: the key tasks is not a Array or one of
> its subclasses - unable to remove the value.
>
>
> Does anyone have any ideas or suggestions?
>
> Thanks!
>
> Mark
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.