Dreaded "lookup of unknown key: '_WODP_59"

22 views
Skip to first unread message

Chuck Hill

unread,
Mar 7, 2007, 3:34:24 PM3/7/07
to wotips
These are always fun! You make a mistake in your WOD and WO helpfully
suggests:

<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
[<com.foo.bar.Search name: com.foo.bar.Search subcomponents: null >
valueForKey()]: lookup of unknown key: '_WODP_59
id = _WODP_60'.
This WOComponent does not have an instance variable of the name
_WODP_59
id = _WODP_60 or __WODP_59
id = _WODP_60, nor a method of the name _WODP_59
id = _WODP_60, __WODP_59
id = _WODP_60, get_WODP_59
id = _WODP_60, or _get_WODP_59
id = _WODP_60

Now, of course, you aren't actually using values like _WODP_59.
These are created by the parser to represent quoted text. So what
this message really means is "error parsing quoted string before
binding starting with 'id =' and followed by a quoted string. That is
a mouthful!

The error that caused this helpful message was:

style = "float: left; vertical-align: bottom;"
id = "showExtraFieldsSubmitButton";

Note the missing ';' on the end of the style = binding.

Chuck

GavinEadie

unread,
Mar 12, 2007, 5:10:36 PM3/12/07
to wotips
It's possible to get WebObjects to tell you about the _WODP
assignments if you wind debugging level up. Add the line:

NSDebugLevel NSLog.DebugLevelDetailed

to your Properties, and you'll get:

[2007-03-12 17:05:14 EDT] <WorkerThread0> Found a quoted string:
_WODP_0='yellow';
[2007-03-12 17:05:14 EDT] <WorkerThread0> Found a quoted string:
_WODP_1='Summary';

Reply all
Reply to author
Forward
0 new messages