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

Branch target offset too large for short while processing stylesheet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6
    • 2.7
    • transformation
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • XP/Xalan 2.6.0/j2sdk1.4.2_06

    Description

      Hi,

      While processing stylesheet I receive the below exception when using 2.6.0. Note, when using 2.4.1 it works without issue.

      It is falling over in the bcel code. The xsl used is only 831 lines long.

      look forward to your response.

      com.sun.org.apache.bcel.internal.generic.ClassGenException: Branch target offset too large for short
      at com.sun.org.apache.bcel.internal.generic.BranchInstruction.dump(BranchInstruction.java:99)
      at com.sun.org.apache.bcel.internal.generic.InstructionList.getByteCode(InstructionList.java:980)
      at com.sun.org.apache.bcel.internal.generic.MethodGen.getMethod(MethodGen.java:587)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:580)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileTemplates(Mode.java:590)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:842)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
      at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:720)
      at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:548)

      Kind Regards
      Antony

      Attachments

        1. TradeCollection.xsl
          114 kB
          Antony Walker

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abwxxxx Antony Walker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: