tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject Re: java.lang.ClassCastException
Date Thu, 07 Dec 2000 08:20:47 GMT
> This an intermitten problem that crops up once in a while.
> A java object SearchResult is put into the Session object
> by servlet1 and taken out by servlet2 which type cast it back
> to (SearchResult), if it's not null.
> 
> Ocassionally, servlet2 will throw java.lang.ClassCastException.
> However, the object retrieved is not null and it IS the
> correct casting.
> 
> Did anyone encounter this before? Is there anything I might
> have overlooked? 

Is it perhaps due to a new classloader being used? Does this happen when
the servlet is recompiled half way through the operation?

Jon

Mime
View raw message