Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-913

java.lang.ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 2.3
    • None
    • JAXP
    • None
    • Operating System: Linux
      Platform: PC
    • 7225

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bam@snoopy.apana.org.au Brian May
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: