> -----Oorspronkelijk bericht-----
> Van: Kees Jongenburger [mailto:[EMAIL PROTECTED]
> Verzonden: maandag 13 oktober 2003 10:00
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: Failed Storing persistent session attribute...?
> 
> 
> On Sunday 12 October 2003 11:21 pm, Curtney Jacobs wrote:
> > Greetings!
> > 
> > I am recieving the following lines in my log file:
> > 
> > <quote>
> > 
> > Failed Storing persistent session attribute 
> 'mmbase_editors_cloud'. Persistent 
> > session values must extend java.io.serializable.
> > 
> > java.io.NotSerializableException: 
> org.mmbase.bridge.implementation.BasicCloud

<snip>

> 
> I don't think it's a requirement that everything you put in 
> the session has to be serilisable.

The servlet spec says that the container _may_ throw an
IllegalArgumentException if an object is put into a session that
is not serializable. Reason for this is the possibility of
session migration to another container. So it depends on
the container whether non-serializable objects are accepted.

> 
> When I look als the errro you are getting it looks like the 
> standard mmbase editors store the Cloud instance in the 
> session and therefore are not serialisable
> 
> b.t.w there is a serialisable implementation of the bridge 
> cloud (rmmci) but i haven't every tried if it survives a 
> serialisation to file.
> 
> > 
> > Curtney Jacobs
> > 
> 
> -- 
> Kees Jongenburger
> Mediapark C101 Hilversum  
> +31 (0)35 6772910
> 
> 

Reply via email to