NegativeArraySizeException in net.sourceforge.saxon:saxon
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
Using library net.sourceforge.saxon:saxon:9.1.0.8 we've got following exception:
Caused by: java.lang.NegativeArraySizeException: null at net.sf.saxon.tinytree.TinyTree.<init>(TinyTree.java:161) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.tinytree.TinyTree.<init>(TinyTree.java:145) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.tinytree.TinyBuilder.open(TinyBuilder.java:96) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.event.ReceivingContentHandler.startDocument(ReceivingContentHandler.java:203) ~[saxon-9.1.0.8.jar:na] at org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) ~[xercesImpl-2.11.0.HA.1_7.jar:na] at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.event.Sender.send(Sender.java:214) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.event.Sender.send(Sender.java:50) ~[saxon-9.1.0.8.jar:na] at net.sf.saxon.Controller.transform(Controller.java:1611) ~[saxon-9.1.0.8.jar:na] ...
I've played with class net.sf.saxon.tinytree.TinyTree and there really can be a case when it tries to create an array of bytes with negative size. Is this case known for you and is there any solution to avoid such error?
Anonymous
Please raise Saxon support requests at saxonica.plan.io - we no longer use SourceForge as part of our technical support process. I'm afraid 9.1.0.8 is a very old release and we won't investigate problems unless they occur in a more recent release.