DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8488>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8488 Serializable issues in Tiles Summary: Serializable issues in Tiles Product: Struts Version: Nightly Build Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I18nFactorySet implements Serializable, but contains some attributes that don't: protected DefinitionsFactory defaultFactory; protected XmlParser xmlParser; Since these unserializable attributes exist in a Serializable object, we get a java.io.NotSerializableException when running in WLS 6.1 sp1 We solved this problem on our local build by having DefinitionsFactory implement Serializable and by making the XmlParser attribute transient. a log of our changes is included below: ================================================ --- contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/DefinitionsFactory .java 24 Apr 2002 18:45:58 -0000 *************** *** 8,13 **** --- 8,14 ---- import org.apache.struts.tiles.FactoryNotFoundException; import org.apache.struts.tiles.NoSuchDefinitionException; + import java.io.Serializable; import java.util.Map; import java.util.HashMap; import java.util.Iterator; *************** *** 21,27 **** * A factory for definitions. * This factory allows to retrieve definitions by their keys. */ ! public class DefinitionsFactory { /** */ protected Map definitions; --- 22,28 ---- * A factory for definitions. * This factory allows to retrieve definitions by their keys. */ ! public class DefinitionsFactory implements Serializable { /** */ protected Map definitions; Index: contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.jav a =================================================================== RCS file: /home/cvspublic/jakarta- struts/contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactory Set.java,v retrieving revision 1.4 diff -b -c -r1.4 I18nFactorySet.java *** contrib/tiles/src/share/org/apache/struts/tiles/xmlDefinition/I18nFactorySet.jav a 24 Apr 2002 18:45:58 -0000 *************** *** 62,68 **** /** Default factory */ protected DefinitionsFactory defaultFactory; /** Xml parser used */ ! protected XmlParser xmlParser; /** Does we want validating parser ? Default is false. * Can be set from servlet config file */ --- 62,68 ---- /** Default factory */ protected DefinitionsFactory defaultFactory; /** Xml parser used */ ! protected transient XmlParser xmlParser; /** Does we want validating parser ? Default is false. * Can be set from servlet config file */ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>