You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hohlen, John C" <Jo...@erac.com> on 2003/07/10 17:22:39 UTC

Struts 1.1 Bug? "PlugIn" Objects Not Serializable

> I'm encountering a "serialization" error due to Plug-In objects, in my case, the "org.apache.struts.validator.ValidatorPlugIn" not being serializable.  An array of plug-ins are stored in "application" scope in the "ActionServlet.initModulePlugIns()" method.  However, the "PlugIn" interface does not implement "serializable" nor do any of the implementing subclasses (ModuleConfigVerifier, TilesPlugin, ValidatorPlugIn).  Anybody have any ideas for a possible workaround?
> JOHN
> P.S. I checked Bugzilla database and did not see this error.  I will add if others concur with this.
> 
> 

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


Re: Struts 1.1 Bug? "PlugIn" Objects Not Serializable

Posted by David Graham <gr...@yahoo.com>.
--- "Hohlen, John C" <Jo...@erac.com> wrote:
> > I'm encountering a "serialization" error due to Plug-In objects, in my
> case, the "org.apache.struts.validator.ValidatorPlugIn" not being
> serializable.  An array of plug-ins are stored in "application" scope in
> the "ActionServlet.initModulePlugIns()" method.  However, the "PlugIn"
> interface does not implement "serializable" nor do any of the
> implementing subclasses (ModuleConfigVerifier, TilesPlugin,
> ValidatorPlugIn).  Anybody have any ideas for a possible workaround?
> > JOHN
> > P.S. I checked Bugzilla database and did not see this error.  I will
> add if others concur with this.

Only objects stored in the session are required to be Serializable. 
Distributable apps require objects in the ServletContext to be
Serializable as well.

David


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


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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