JDK-8062518 : AIOBE occurs when accessing to document function in extended function in JAXP
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6,8u25,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-10-30
  • Updated: 2015-09-29
  • Resolved: 2015-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9
6u105Fixed 7u91Fixed 8u60Fixed 9 b65Fixed
Related Reports
Relates :  
Relates :  
Description
A user create a extended function which calls document function,
ArrayIndexOutOfBoundsException occurs.


When a test case runs, the following exception shows up.

$ ./make.csh    // Compiling test case

$ ./run.csh     // Run test case
node count: 1
node count: 1
ERROR:  '-1'
javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: -1
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:752)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:357)
        at sample.xslt.Test.main(Test.java:39) 
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
        at com.sun.org.apache.xml.internal.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:442)
        at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2._exptype(SAX2DTM2.java:1905)
        at com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase.getNodeType(DTMDefaultBase.java:1838)
        at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getNodeName(SAXImpl.java:1055)
        at com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy.getNodeName(DTMNodeProxy.java:188)
        at sample.xslt.ExtFunc.test(ExtFunc.java:12)
        at GregorSamsa.template$dot$0()
        at GregorSamsa.applyTemplates()
        at GregorSamsa.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:617)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:745)
        ... 2 more
---------
java.lang.ArrayIndexOutOfBoundsException: -1
        at com.sun.org.apache.xml.internal.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:442)
        at com.sun.org.apache.xml.internal.dtm.ref.sax2dtm.SAX2DTM2._exptype(SAX2DTM2.java:1905)
        at com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase.getNodeType(DTMDefaultBase.java:1838)
        at com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.getNodeName(SAXImpl.java:1055)
        at com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy.getNodeName(DTMNodeProxy.java:188)
        at sample.xslt.ExtFunc.test(ExtFunc.java:12)
        at GregorSamsa.template$dot$0()
        at GregorSamsa.applyTemplates()
        at GregorSamsa.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:617)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:745)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:357)
        at sample.xslt.Test.main(Test.java:39)

 

Comments
UR SQE: not a security vulnerability, not a recent regression. We can take it in 8u60 if it need by August.
13-05-2015

SQE OK to defer a corne case bug to PSU15_03
09-02-2015