cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: ObjectModel exception
Date Tue, 25 Sep 2007 19:48:59 GMT
Leszek Gawron pisze:
> Lately I keep getting these:
> 
>> java.lang.ClassCastException: org.mozilla.javascript.NativeObject
>>     at com.mobilebox.smart.model.Contractor.equals(Contractor.java:335)
>>     at java.util.ArrayList.remove(ArrayList.java:424)
>>     at
>> org.apache.commons.collections.map.MultiValueMap.remove(MultiValueMap.java:160)
>>
>>     at
>> org.apache.cocoon.el.impl.objectmodel.ObjectModelImpl.cleanupLocalContext(ObjectModelImpl.java:192)
>>
> 
> Though the exception happens somewhere in my business code I feel this
> is caused by latest object model refactorings. Grzegorz could you comment?

Yep. Contrary to the old OM handling the new one demands equals() method properly implemented
for
all objects put on OM.

Is it something bad?

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

Mime
View raw message