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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Automation using Visual Studio (7)
-> + CSV to XML conversion help (2)
-> + XML tree help (3)
-> + java.lang.NullPointerException... (2)
-> + Creating schema from xml - how... (3)
-> + Mismatch between intellisense ... (4)
-> + Using FOP 0.94 in XML Pipeline (2)
-> - UV Kit (1)
-> - Preview PDF as HTML? (1)
-> - ArrayIndexOutOfBoundsException... (3)
-> ->ArrayIndexOutOfBoundsExce...
-> ->ArrayIndexOutOfBoundsExce...
-> + WSCC to KML transform help (5)
-> + Using XSV 3.1-1 as an external... (2)
-> + Cannot debug stylesheet (2)
-> + Error installing Stylus Studio... (3)
-> - Windows XP "not responding" er... (1)
-> - Windows XP "not responding" er... (1)
-> + HTML to XSL (2)
-> + Run Stylus studio from command... (2)
-> + Setting Context for XPath Quer... (5)
-> + Batch process to check well-fo... (9)
-- Previous [1201-1220] [1221-1240] [1241-1260] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.