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=4284>. 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=4284 Java serialization problematic for broad trees ------- Additional Comments From [EMAIL PROTECTED] 2001-11-03 09:57 ------- The specific problem is that Java serialization uses recursion to traverse object references. The xerces dom implementation uses a linked list to represent the children of a node. The result is that the Java serializer recurses across the children of the node. If you have a lot, say 1k, children, this can lead to stack overflow exceptions inside the Java serializer. I will agree that this is not a xerces bug per se, but it can be addressed by providing custom write/read object methods that transform the child list into a child array. This makes it possible to serialize extremely broad trees using the standard Java serializer. Hopefully making xerces more friendly to Java serialization would be a desirable goal. I have done this for my current client. Unfortunately they are using a heavily modified version of the 1.2.2 tree so any of the fixes would need to be largely repeated on the current code base. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
