XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Johan De SmedtSubject: 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


UnknownprintThesaurus.xsl
xsl

Postnext
(Deleted User) 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.

Hope this helps,
Alberto

Posttop
Johan De SmedtSubject: ArrayIndexOutOfBoundsException on 2008 ent edition
Author: Johan De Smedt
Date: 10 Mar 2008 04:50 PM
Terrific Alberto - This soved it !

Thanks a lot.

Johan.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.