struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: ClassCastException using the DynaValidatorForm
Date Wed, 09 Jul 2003 09:17:45 GMT
Don't you just love caching? The number of errors I have made like that 
which drove me insane until whatever it was - the browser, the server, 
the memory - stopped caching. Torture.

Michael Muller wrote:
> 
> That would explain it.  The struts-config got re-loaded telling it that 
> "myForm" was a dyna bean, but the re-serialized bean in the session was 
> still one of my custom beans.
> 
> Thank you!  I had no idea that Tomcat serialized the session data when 
> it shut down.
> 
>   -- Mike
> 
> Wendy Smoak wrote:
> 
>>> this resulted in the ClassCastException i described earlier, despite 
>>> reloading the webapp and even restarting tomcat.
>>
>>
>>
>> Did you also close the browser window you were using to test?  IIRC, 
>> Tomcat
>> serializes session data when you shut it down.  Just a guess, but I think
>> you had a session sitting around with the "old" form bean, and since the
>> name was the same, it got used.  If you had changed the name from the
>> beginning (myForm2) you likely never would have seen this.
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message