Re: Strange Error (help please)

Peter Vandoros <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
don't you mean 5.3 implements the List interface, not 5.2.4?

 From the link you provided:
"Between WebObjects 5.2.4 and WebObjects 5.3"

Thanks

Peter

wojingo wrote:
> Hi,
>
> Michael Deninger wrote:
>> Hi,
>>
>> I have been developing an app under MacOS X 10.4 and am trying to  
>> deploy on MacOS X Server 10.2.8.
>>
>> Most everything works properly with one exception (literally) as  
>> follows:
>>
>> com.webobjects.foundation.NSForwardException  
>> [java.lang.NoSuchMethodError]  
>> com.webobjects.foundation.NSMutableArray.contains(Ljava/lang/Object;)Z
>>
>> The exception only occurs upon the deployment server on one specific  
>> component page. The exception gives no additional information and 
>> the  log files don't show anything either.
>>
>> The only difference I can see between the machines (from a java  
>> standpoint) is:
>>
>> Server:$ java -version
>> java version "1.4.1_01"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-69.1)
>> Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)
>>
>> Development Machine $ java -version
>> java version "1.4.2_09"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
>> Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)
>>
>> which is not significant as far as I know. The applications runs 
>> fine  under the development environment.
>>
>> Can anyone enlighten me with respect to this? The component in  
>> question is not doing anything my other components don's 
>> successfully  do!
>>
>> Regards,
>>
>> Michael Deninger RPh. Ph.D.
>> Partner, Towncrest Pharmacy
>> 2306 Muscatine Ave.
>> Iowa City, IA 52240
>> Ph: 319 337-3526
>> Fax: 319 337-5271
>> [email protected]
>>
>>
>
>
> The error is saying that NSMutableArray and its superclasses do not 
> implement the contains(Object o) method.
>
> Looking at the api for WO 5.2.3 there is a containsObject(Object o) 
> method in the class hierachy of NSMutableArray but no
> contains(Object o).
>
> Looking at,
>
> http://developer1.apple.com/documentation//WebObjects/Reference/API/changes.html 
>
>
> Says that in 5.2.4 the interface for java.util.List has been added to 
> NSArray, which does have a contains(Object o) method.
>
> Therefore, I would guess that you are developing using the jars from 
> WO 5.2.4 and deploying on < 5.2.4.
>
> cheers,
>  - shaun
>
>
>
>
>
>
>
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
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.