[SOLVED] Re: primary key trouble: IllegalArgumentException: Array is empty
[SOLVED] Re: primary key trouble: IllegalArgumentException: Array is empty
- Subject: [SOLVED] Re: primary key trouble: IllegalArgumentException: Array is empty
- From: Zak Burke <email@hidden>
- Date: Thu, 24 Feb 2005 10:08:11 -0500
Zak Burke wrote on 2/16/05 11:32 AM:
I am getting an "IllegalArgumentException: Array is empty" when some
users submit a form that persists an EO to my database. The behaviour is
sporadic and random. Sometimes saving is successful; sometimes it fails.
I haven't been able to isolate any differences in operating environments
(browser, platform, version) that can avoid or provoke this behaviour
consistently so I'm at a total loss to explain it.
[snip]
The problem turned out to be an unbound form variable. We use
JavaScript to simplify some form manipulations. In this case, the JS
was saving the value of a select-box item in a field which, on
submit, was then mapped by WO to an EO. The problem only showed up
if a user didn't select an item in the select box.
Now, in theory, we have code in place to check for this condition,
but apparently it's broken. I'm still not sure why this situation
resulted in the message "Array is empty", but at least now I know
what causes it.
zak.
_______________________________________________
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