[xsl] com.sun.org.apache.bcel.internal.generic.ClassGenException: Branch target offset too large for short

Subject: [xsl] com.sun.org.apache.bcel.internal.generic.ClassGenException: Branch target offset too large for short
From: "Mini Vatsala" <minimohanv@xxxxxxxxx>
Date: Sat, 24 Feb 2007 16:56:07 -0800
Hi,

We are having issues with XSLT after upgrading to java 1.5 ( 1.5.0_06)

xalan version used is : xalan-j_2_7_0

Below is the exception stack trace :
--------------------------------------------------------------------------------------------------------------------------------
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.compileApplyTemplates(Mode.java:1064)
       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.trax.TemplatesHandlerImpl.endDocument(TemplatesHandlerImpl.java:225)
       at com.bluecast.xml.Piccolo.reportEndDocument(Unknown Source)
       at com.bluecast.xml.Piccolo.parse(Unknown Source)
       at com.apple.ist.jcm.plugin.OutputFormatterMechXML.initXSLT(OutputFormatterMechXML.java:150)
       at com.apple.ist.jcm.plugin.OutputFormatterMechXML.init(OutputFormatterMechXML.java:123)
       at com.apple.ist.jcm.impl.BusinessObjectTransfer.runOutputQueryBatch(BusinessObjectTransfer.java:1072)
       at com.apple.ist.jcm.impl.BusinessObjectTransfer.transitionGroup(BusinessObjectTransfer.java:465)
       at com.apple.ist.jcm.impl.BusinessObjectTransaction.process(BusinessObjectTransaction.java:161)
       at com.apple.ist.jcm.impl.MessageThread.runBurstMode(MessageThread.java:491)
       at com.apple.ist.jcm.impl.MessageThread.run(MessageThread.java:141)
       at java.lang.Thread.run(Thread.java:613)
--------------------------------------------------------------------------------------------------------------------------------

Any pointers on this issue?

Do we need to upgrade the xalan version with java 1.5 upgrade?

Thanks in advance,
Mini

Current Thread