struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject RE: Struts 1.1 Bug? "PlugIn" Objects Not Serializable
Date Thu, 10 Jul 2003 16:24:15 GMT
--- "Hohlen, John C" <John.C.Hohlen@erac.com> wrote:
> That's exactly my problem.  I have a distributable application using
> Struts 1.1.  Struts is storing an object in the ServletContext that is
> not serializable.  What am I supposed to do, remove it?  That would
> probably cause Struts not to function properly.

Open an enhancement request and we'll look at what it would take to make
the standard plugins serializable.  I don't think the interface should be
serializable because there might be plugins that use databases or other
non-serializable objects.

David


> 
> Thanks,
> 
> JOHN
> 
> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com]
> Sent: Thursday, July 10, 2003 10:47 AM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1 Bug? "PlugIn" Objects Not Serializable
> 
> 
> --- "Hohlen, John C" <John.C.Hohlen@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
> 


__________________________________
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


Mime
View raw message