You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by mvyas <mv...@manh.com> on 2007/06/30 12:24:54 UTC
Getting this exception, any clue? I am using jdk1.5
ERROR: 'Branch target offset too large for short'
FATAL ERROR: 'Could not compile stylesheet'
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:581)
at
com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileTemplates(Mode.java:591)
at
com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:843)
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:791)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
at
weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:233)
at
weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
--
View this message in context: http://www.nabble.com/Getting-this-exception%2C-any-clue--I-am-using-jdk1.5-tf4004362.html#a11372486
Sent from the Xalan - J - Users mailing list archive at Nabble.com.
Re: Getting this exception, any clue? I am using jdk1.5
Posted by Santiago Pericas-Geertsen <Sa...@Sun.COM>.
On Jun 30, 2007, at 11:05 PM, Henry Zongaro wrote:
>
> Hello.
>
> mvyas <mv...@manh.com> wrote on 2007-06-30 06:24:54 AM:
> > ERROR: 'Branch target offset too large for short'
> > FATAL ERROR: 'Could not compile stylesheet'
> >
> > 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)
>
> This was a known bug in XSLTC, that has been fixed for most cases.
> See Jira issue 1324 [1] for more information.
>
> Of course, the traceback indicates that you're using the version of
> XSLTC that Sun packages with its JDK, so you'll have to contact
> them about getting an update of the JDK that includes this (or an
> equivalent) fix.
The fix for this patch hasn't been integrated in Sun's JDK
workspace yet. Your best bet is to download Xalan from Apache and put
it in your classpath.
Hope this helps.
-- Santiago
Re: Getting this exception, any clue? I am using jdk1.5
Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hello.
mvyas <mv...@manh.com> wrote on 2007-06-30 06:24:54 AM:
> ERROR: 'Branch target offset too large for short'
> FATAL ERROR: 'Could not compile stylesheet'
>
> 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)
This was a known bug in XSLTC, that has been fixed for most cases. See
Jira issue 1324 [1] for more information.
Of course, the traceback indicates that you're using the version of XSLTC
that Sun packages with its JDK, so you'll have to contact them about
getting an update of the JDK that includes this (or an equivalent) fix.
Thanks,
Henry
[1] http://issues.apache.org/jira/browse/XALANJ-1324
------------------------------------------------------------------
Henry Zongaro XSLT Processors Development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com