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

javax.xml.transform.TransformerException: 865 >= 1 - Not able to transform the XML file

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.3Dx
    • 2.7
    • transformation, Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Java : jdk1.3.1_12. Xalan: Xalan Java 2.3.1.
      OS: Windows XP.

    Description

      I was trying to transform the example.xml using example.xsl. This is giving
      transformion exception 865>=1. The same transformation is working in
      Xalan: Xalan Version Xalan Java 2.2.D11.

      Steps to Reproduce:

      1. I have written a simple transformation java file which accepts both
      example.xml and example.xsl and outputs example.html file.

      2. If I use Xalan ver 2.3.1 the transformation is throwing error (i have attached the
      stack trace)

      3. If I use Xalan ver 2.2.D11, this is not throwing any error. ( i don't know why)..

      Attachment example.zip file contains
      example.xml file and example.xsl file.

      If you remove the reference the following line from example.xsl file
      <xsl:call-template name="summa"/>, transformation works fine. ("summa" is an
      empty template). Is there any limitation on number of templates declared??

      Thanks and Regards,
      Sundar

      **********************************************************************************
      STACK TRACE
      **********************************************************************************

      Exception in thread "main" javax.xml.transform.TransformerException: 865 >= 1
      at org.apache.xpath.XPath.execute(XPath.java:341)
      at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:311)
      at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:282)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1773)
      at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:327)
      at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:282)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.j
      ava:422)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:206
      9)
      at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:634)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
      at SimpleTransform.transformFiles(Simpletransform.java:113)
      at SimpleTransform.mainFunction(Simpletransform.java:49)
      at SimpleTransform.main(Simpletransform.java:31)
      ---------
      java.lang.ArrayIndexOutOfBoundsException: 865 >= 1
      at java.util.Vector.elementAt(Unknown Source)
      at org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java:128)
      at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java:1252)
      at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java:280)
      at org.apache.xpath.functions.FuncSubstringBefore.execute(FuncSubstringBefore.java:86)
      at org.apache.xpath.objects.XRTreeFragSelectWrapper.execute(XRTreeFragSelectWrapper.java:57)

      at org.apache.xpath.XPath.execute(XPath.java:318)
      at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:311)
      at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:282)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1773)
      at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:327)
      at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:282)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:200)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.j
      ava:422)
      at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
      at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:279)
      at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2
      243)
      at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:206
      9)
      at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:634)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1088)
      at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1066)
      at SimpleTransform.transformFiles(Simpletransform.java:113)
      at SimpleTransform.mainFunction(Simpletransform.java:49)
      at SimpleTransform.main(Simpletransform.java:31)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sundararamansa sundararaman sa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment