You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2010/08/23 16:13:17 UTC

[jira] Commented: (XALANJ-2519) Branch target offset too large for short; Could not compile stylesheet

    [ https://issues.apache.org/jira/browse/XALANJ-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901410#action_12901410 ] 

Henry Zongaro commented on XALANJ-2519:
---------------------------------------

The stack trace indicates you are using Sun's XSLT processor, rather than the Apache Xalan-Java compiling processor (XSLTC).  You should report this problem to Sun.

Most problems with "Branch target offset too large for short" in XSLTC have been fixed, but there are some still lingering.  If you attach a stylesheet, we could quickly determine whether your stylesheet still triggers this problem in the Apache version of XSLTC.

> Branch target offset too large for short; Could not compile stylesheet
> ----------------------------------------------------------------------
>
>                 Key: XALANJ-2519
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2519
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.  Anybody can view the issue.) 
>         Environment: NetBeans IDE
>            Reporter: Sanitha Alam
>         Attachments: error.jpg
>
>
> 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:616)
>         at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileNamedTemplate(Mode.java:556)
>         at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileTemplates(Mode.java:566)
>         at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:818)
>         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:354)
>         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:795)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:617)
>         at xmleditor.XMLTransform.main(XMLTransform.java:40)
> ERROR:  'Branch target offset too large for short'
> FATAL ERROR:  'Could not compile stylesheet'
> Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:828)
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:617)
>         at xmleditor.XMLTransform.main(XMLTransform.java:40)
> Java Result: 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org