You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/19 00:38:36 UTC

DO NOT REPLY [Bug 7225] New: - java.lang.ArrayIndexOutOfBoundsException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7225>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7225

java.lang.ArrayIndexOutOfBoundsException

           Summary: java.lang.ArrayIndexOutOfBoundsException
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: javax.xml
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: bam@snoopy.apana.org.au


make website
make[1]: Entering directory `/home/bam/public_html2'
java org.apache.xalan.xslt.Process -IN debian/faq/index.xml -XSL
packages/website/xsl/tabular.xsl -OUT debian/faq/index.html  -PARAM
autolayout-file /home/bam/public_html2/autolayout.xml -PARAM thisrelpath ""../../

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
java.lang.ArrayIndexOutOfBoundsException: 4 >= 3
make[1]: *** [debian/faq/index.html] Error 255
make[1]: Leaving directory `/home/bam/public_html2'
make: *** [all] Error 2

the XSL code in question is:

            <xsl:choose>
              <xsl:when test="$feedback != ''">


(this is line 153).

If I add this line before hand:

            <xsl:message>aa<xsl:value-of select="$feedback"/>bb</xsl:message>

then the output changes to:

/make website
make[1]: Entering directory `/home/bam/public_html2'
java org.apache.xalan.xslt.Process -IN debian/faq/index.xml -XSL
packages/website/xsl/tabular.xsl -OUT debian/faq/index.html  -PARAM
autolayout-file /home/bam/public_html2/autolayout.xml -PARAM thisrelpath ""../../

(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
java.lang.ArrayIndexOutOfBoundsException: 4 >= 3
make[1]: *** [debian/faq/index.html] Error 255
make[1]: Leaving directory `/home/bam/public_html2'
make: *** [all] Error 2


the same stuff works fine with Xalan 2.0.0 (this is 2.3.1).

Here I get the following output:

java org.apache.xalan.xslt.Process -IN debian/faq/index.xml -XSL
packages/website/xsl/tabular.xsl -OUT debian/faq/index.html  -PARAM
autolayout-file /home/bam/public_html2/autolayout.xml -PARAM thisrelpath ""../../
file:////home/bam/public_html2/packages/website/xsl/website-common.xsl; Line
152; Column 19; aamailto:bam@snoopy.apana.org.aubb

java org.apache.xalan.xslt.Process -IN debian/debxml/index.xml -XSL
packages/website/xsl/tabular.xsl -OUT debian/debxml/index.html  -PARAM
autolayout-file /home/bam/public_html2/autolayout.xml -PARAM thisrelpath ""../../
make[1]: *** [debian/debxml/index.html] Interrupt
make: *** [all] Interrupt