Project

Profile

Help

Bug #3665

closed

ArrayIndexOutOfBounds in PrecedingSiblingIterator during schema validation

Added by Michael Kay almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema conformance
Sprint/Milestone:
-
Start date:
2018-02-10
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

Crash in 9.8 during XML validation:

java.lang.ArrayIndexOutOfBoundsException: 1617

    at net.sf.saxon.tree.tiny.PrecedingSiblingIterator.next(PrecedingSibling

Iterator.java:47)

    at net.sf.saxon.tree.wrapper.VirtualCopy$VirtualCopier.next(VirtualCopy.

java:757)

    at net.sf.saxon.tree.util.Navigator.getNumberSimple(Navigator.java:327)

    at net.sf.saxon.tree.util.Navigator.getPath(Navigator.java:217)

    at net.sf.saxon.tree.util.Navigator.getPath(Navigator.java:212)

    at net.sf.saxon.tree.util.Navigator.getPath(Navigator.java:184)

    at com.saxonica.ee.validate.InvalidityReportGeneratorEE.reportInvalidity

(InvalidityReportGeneratorEE.java:191)

    at com.saxonica.ee.validate.ValidatingFilter.reportValidationError(Valid

atingFilter.java:180)

    at com.saxonica.ee.validate.ValidationStack.testAssertions(ValidationSta

ck.java:508)

    at com.saxonica.ee.validate.ValidationStack.endElement(ValidationStack.j

ava:430)

    at net.sf.saxon.event.ProxyReceiver.endElement(ProxyReceiver.java:182)

    at net.sf.saxon.event.StartTagBuffer.endElement(StartTagBuffer.java:290)


    at com.saxonica.ee.validate.StartTagBufferEE.endElement(StartTagBufferEE

.java:58)

    at net.sf.saxon.event.PathMaintainer.endElement(PathMaintainer.java:62)

    at net.sf.saxon.event.DocumentValidator.endElement(DocumentValidator.jav

a:68)

    at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingConten

tHandler.java:459)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme

nt(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp

l.scanEndElement(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp

l$FragmentContentDriver.next(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U

nknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next

(Unknown Source)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp

l.scanDocument(Unknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U

nknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U

nknown Source)

    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So

urce)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un

known Source)

    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p

arse(Unknown Source)

    at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:427)

    at net.sf.saxon.event.Sender.send(Sender.java:138)

    at com.saxonica.ee.s9api.SchemaValidatorImpl.validate(SchemaValidatorImp

l.java:587)

    at com.saxonica.Validate.processFile(Validate.java:610)

    at com.saxonica.Validate.doValidate(Validate.java:416)

    at com.saxonica.Validate.main(Validate.java:59)

reported by private email


Related issues

Has duplicate Saxon - Bug #4092: java.lang.ArrayIndexOutOfBoundsException when validating with XSD 1.1 with assertion on preceding-siblingClosedMichael Kay2019-01-14

Actions

Please register to edit this issue

Also available in: Atom PDF