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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] 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.