RE: Strange formValues() behavior

"Beru Whitesun" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi.


>From: "Matt Kime" <[email protected]>
>To: [email protected]
>Subject: Strange formValues() behavior
>Date: Sun, 19 Feb 2006 22:22:40 -0500
>
>I'm having a lot of trouble tracking down a problem retrieving a GET form 
>value.
>

>i'm getting the following error -
>
>[2006-02-19 21:04:42 CST] <WorkerThread4>
><com.webobjects.appserver._private.WODirectActionRequestHandler>:
>Exception while handling action named "gallerySubmitPage" on action
>class "null" :com.webobjects.foundation.NSForwardException
>[java.lang.NoSuchMethodError] null
>[2006-02-19 21:04:42 CST] <WorkerThread4>
>com.webobjects.foundation.NSForwardException for
>java.lang.NoSuchMethodError:
>com.webobjects.foundation.NSDictionary.containsKey(Ljava/lang/Object;)Z
>	at gallerySubmitForm.<init>(gallerySubmitForm.java:54)
>	a

>From the docs 
(http://developer.apple.com/documentation/WebObjects/Reference/API/):

public boolean containsKey(Object key)
    NSDictionaries do not allow null keys which differs from the 
java.util.Map specification. We return false for the key = null case
    Specified by:
        containsKey in interface Map
    Since:
        5.3
    See Also:
        Map.containsKey(java.lang.Object)


Are you using 5.3.1 in development, or deployment, or both?
'Since 5.3':
You might need to determine the key/value another way for pre 5.3 
environments...

Cheers,
Beru.

_________________________________________________________________
Ever wanted to be a TV Stylist? Win Your Dream Job at MyCareer 
http://dreamjob.mycareer.com.au/?s_cid=213322
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.