Subject:ArrayIndexOutOfBoundsException on 2008 ent edition Author:Johan De Smedt Date:10 Mar 2008 03:58 PM
Hi,
I got an ArrayIndexOutOfBoundsException exception on stylsheets that were running smoothly under 2007 and earlier version.
The error is at start-up of the xslt transformation scenario.
(stylesheet is attached)
Thanks for suggestions,
Johan
stacktrace:
java.lang.ArrayIndexOutOfBoundsException: 0
at net.sf.saxon.expr.XPathContextMinor.setLocalVariable(XPathContextMinor.java:349)
at net.sf.saxon.instruct.LocalParam.processLeavingTail(LocalParam.java:143)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:94)
at net.sf.saxon.instruct.GeneralVariable.evaluateItem(GeneralVariable.java:330)
at net.sf.saxon.instruct.GeneralVariable.iterate(GeneralVariable.java:352)
at net.sf.saxon.instruct.TraceWrapper.iterate(TraceWrapper.java:221)
at net.sf.saxon.instruct.BlockIterator.next(BlockIterator.java:42)
at net.sf.saxon.value.SequenceExtent.<init>(SequenceExtent.java:98)
at net.sf.saxon.value.SequenceExtent.makeSequenceExtent(SequenceExtent.java:134)
at net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:307)
at net.sf.saxon.instruct.GlobalVariable.getSelectValue(GlobalVariable.java:210)
at net.sf.saxon.instruct.GlobalVariable.evaluateVariable(GlobalVariable.java:234)
at net.sf.saxon.Controller.preEvaluateGlobals(Controller.java:1805)
at net.sf.saxon.Controller.transformDocument(Controller.java:1697)
at net.sf.saxon.Controller.transform(Controller.java:1559)
at com.exln.stylus.CSaxon8Driver.doProcessing(CSaxon8Driver.java:261)
at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:101)
0
Subject:ArrayIndexOutOfBoundsException on 2008 ent edition Author:(Deleted User) Date:10 Mar 2008 04:39 PM
Hi Johan,
it looks that Saxon 9.0.0.2 is getting confused when evaluating the parameters of a template; I couldn't completely test your stylesheet as I am missing a sample XML, but it looks that the error goes away if you remove (or fill with at least an element of content) the "print-term-intro" template.