You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/02/02 00:55:05 UTC

DO NOT REPLY [Bug 6192] New: - ArrayIndexOutOfBoundsException in XMLSerializer calling NamespaceSupport.popContext().

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=6192>.
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=6192

ArrayIndexOutOfBoundsException in XMLSerializer calling NamespaceSupport.popContext().

           Summary: ArrayIndexOutOfBoundsException in XMLSerializer calling
                    NamespaceSupport.popContext().
           Product: Xerces2-J
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Serialization
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: matt@clickability.com


I am getting an index out of bounds exception when using XMLSerializer to write 
XML. I found this problem using Castor XML(0.9.3) to write a Schema. Following 
is the relevant part of the stack trace. It looks to me like XMLSerializer 
calls popContext() but never calls pushContext(). I could be wrong about this 
because I did not explore too deeply. This could potentially be a usage problem 
in Castor, but I dont think it is because this worked just fine with Xerces 
1.4.3.

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.util.NamespaceSupport.popContext
(NamespaceSupport.java:218)
        at org.apache.xml.serialize.XMLSerializer.endElementIO
(XMLSerializer.java:400)
        at org.apache.xml.serialize.XMLSerializer.endElement
(XMLSerializer.java:387)
        at org.apache.xml.serialize.XMLSerializer.endElement
(XMLSerializer.java:533)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:978)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:973)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:540)
        at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:460)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org