The Serlializable-check isn't sufficient. you can mark any class serializable
if you want. what really counts is that all fields of the class are
serializable, you should have a look at them ...



TH Lim wrote:
> 
> I am aware of the "$1". I did the instanceof check in my code. I printed
> the class name which is, of course, "LinkedListMultimap$1" and it is
> indeed an instanceof Serializable. So basically, LinkedListMultimap$1
> implements Serializable but it failed the checking at
> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342).
> I find this very puzzling.
>  
> 
> Pierre Coquentin wrote:
>> 
>> This is the anonymous inner class inside the LinkedListMultimap class
>> which is not Serializable (LinkedListMultimap*$1*)
>> Best regards
>> 
>> Pierre
>> 
>> 
>> TH Lim a écrit :
>>> Hi,
>>>
>>> I am using Google collections with Wicket 1.3.4 and hit with this
>>> serialization error.
>>>
>>> ERROR - Objects                    - Error serializing object class
>>> web.AdminPage [object=[Page class = web.AdminPage, id = 5, version = 0]]
>>> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
>>> Unable to serialize class:
>>> com.google.common.collect.LinkedListMultimap$1
>>>
>>> I am pretty sure LinkedListMultimap is Serializable and I even did a
>>> test
>>> i.e. obj instaceof Serializable
>>>
>>> What am I missing here? Any input? Thanks.
>>>
>>> /lim/
>>>
>>>
>>>   
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Unable-to-serialize-class-com.google.common.collect.LinkedListMultimap%241-tp19027449p19028210.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to