You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Shruti Ahuja <sh...@noida.hcltech.com> on 2001/10/16 09:10:25 UTC

Exception in SerializerToXML.endElement

Hi,

I am getting an ArrayIndexOutofBoundException while serializing an XML
document as below -


Transformer
objTransformer=TransformerFactory.newInstance().newTransformer();
objTransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
objTransformer.transform(new DOMSource((org.w3c.dom.Node)objDocument), new
StreamResult(objOutStream));

The exception recieved is as follows -

java.lang.ArrayIndexOutOfBoundsException
	at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
	at
org.apache.xalan.serialize.SerializerToXML.endElement(SerializerToXML.java:1
065)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1042)
	at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:447)
	at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:173)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId
entityImpl.java:322)
[catch] at
ordbxml.tools.netbeans.xpath.ApplyXPath.getDocumentString(ApplyXPath.java:70
)

i see that there is some array size fixed in  org.apache.xml.utils.BoolStack
as 32 ..Is is the above exception due to that ?....
If yes, then what can be done to rectify it ?....


Thanks.
Shruti.