You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Frank E. Weiss" <fr...@well.com> on 2002/01/24 06:53:16 UTC

Xalan-j_2_2_0 gives ArrayIndexOutOfBoundsException in ant style task

For some time now I've been successfully using ant-1.4.1 and jdk1.3.1 with xalan-j_2_0_1 and the style task on W2K with
Visual Studio 6. I just switched to xalan-j_2_2_0 and I'm getting numerous exceptions (ArrayIndexOutOfBoundsException)
in the style task. To upgrade xalan I removed the 2_0_1 xalan and xerces jars from the ant lib directory and copyied in
the xalan, xerces, and xml-apis jars from 2_2_0.

Running the transform by hand with xalan works OK, so initially I'm not blaming xalan.

I'm looking further into this, but meanwhile I was wondering if anyone has suggestions on what is going on and/or how to
fix it. Thanks.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Xalan-j_2_2_0 gives ArrayIndexOutOfBoundsException in ant style task

Posted by "Frank E. Weiss" <fr...@well.com>.
Here's another exception with a trace:

    [style] org.apache.xml.utils.WrappedRuntimeException
    [style]  at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:442)
    [style]  at org.apache.xpath.XPathContext.getDTM(XPathContext.java:169)
    [style]  at org.apache.xpath.SourceTreeManager.parseToNode(SourceTreeManager.java:367)
    [style]  at org.apache.xpath.SourceTreeManager.getSourceTree(SourceTreeManager.java:338)
    [style]  at org.apache.xalan.templates.FuncDocument.getDoc(FuncDocument.java:316)
    [style]  at org.apache.xalan.templates.FuncDocument.execute(FuncDocument.java:235)
    [style]  at org.apache.xpath.XPath.execute(XPath.java:318)
    [style]  at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:311)
    [style]  at org.apache.xalan.templates.ElemParam.execute(ElemParam.java:161)
    [style]  at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:420)
    [style]  at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
    [style]  at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
    [style]  at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2012)
    [style]  at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1175)
    [style]  at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:642)
    [style]  at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1092)
    [style]  at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1070)
    [style]  at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:127)
    [style]  at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:341)
    [style]  at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179)
    [style]  at org.apache.tools.ant.Task.perform(Task.java:217)
    [style]  at org.apache.tools.ant.Target.execute(Target.java:184)
    [style]  at org.apache.tools.ant.Target.performTasks(Target.java:202)
    [style]  at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    [style]  at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    [style]  at org.apache.tools.ant.Main.runBuild(Main.java:454)
    [style]  at org.apache.tools.ant.Main.start(Main.java:153)
    [style]  at org.apache.tools.ant.Main.main(Main.java:176)
    [style] file:///U:/Projects/CastroSF/xml/castrosf.xsl; Line 1287; Column 60; Can not load requested doc: pix1.xml



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>