Skip to main content
Inspiring
May 24, 2006
Question

Branch target offset too large for short

  • May 24, 2006
  • 3 replies
  • 9113 views
I havent used this component in about 2 months however when I call any function from this component I recieve this error. "Branch target offset too large for short" Ive searched and turned up nothing.

I tested a really simple component that just returns the argument sent to it even that threw this error. Im testing with CF7 on OS X using Jrun4. Ill include stack below, any help would be awesome .

------------------------stack-------------------------------

Branch target offset too large for short

The error occurred in /Applications/JRun4/servers/default/cfusion/BIGBLUE/v09/download/dlEngine.cfm: line 5

3 : <cfif isDefined('ind_#ii#')>
4 : <cfinvoke component="COM.xDownload" method="tester" returnvariable="fixal3Ret">
5 : <cfinvokeargument name="test" value="1"/>
6 : </cfinvoke>
7 : <cfabort showerror="#fixal3Ret#">

Resources:

* Check the ColdFusion documentation to verify that you are using the correct syntax.
* Search the Knowledge Base to find a solution to your problem.

Browser Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Remote Address 192.168.100.86
Referrer http://192.168.100.86:8100/cfusion/BIGBLUE/v09/download/todays.cfm?mDir=%2FVolumes%2F192.168.100.16&textfield=&mDate=05%2F24%2F2006&mTotPer=6&mConstrain=1&mRecNum=10&imageField.x=60&imageField.y=12
Date/Time 24-May-06 06:54 AM
Stack Trace
at cfdlEngine2ecfm322549419.runPage(/Applications/JRun4/servers/default/cfusion/BIGBLUE/v09/download/dlEngine.cfm:5)

org.apache.bcel.generic.ClassGenException: Branch target offset too large for short
at org.apache.bcel.generic.BranchInstruction.dump(BranchInstruction.java:99)
at org.apache.bcel.generic.InstructionList.getByteCode(InstructionList.java:980)
at org.apache.bcel.generic.MethodGen.getMethod(MethodGen.java:587)
at coldfusion.bytecode.JavaAssembler.getBytes(JavaAssembler.java:369)
at coldfusion.compiler.FunctionAssembler.assemble(FunctionAssembler.java:56)
at coldfusion.compiler.TemplateAssembler.assembleFunctions(TemplateAssembler.java:255)
at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:66)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:308)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:106)
at coldfusion.runtime.TemplateClassLoader$1.fetch(TemplateClassLoader.java:282)
at coldfusion.util.LruCache.get(LruCache.java:188)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:223)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:422)
at coldfusion.runtime.RuntimeServiceImpl.getFile(RuntimeServiceImpl.java:662)
at coldfusion.runtime.RuntimeServiceImpl.resolveTemplatePath(RuntimeServiceImpl.java:629)
at coldfusion.runtime.TemplateProxyFactory.getResolvedFile(TemplateProxyFactory.java:509)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:617)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:341)
at cfdlEngine2ecfm322549419.runPage(/Applications/JRun4/servers/default/cfusion/BIGBLUE/v09/download/dlEngine.cfm:5)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
This topic has been closed for replies.

3 replies

Yoosaf Abdulla
Participating Frequently
April 8, 2014

Hi glossen,

Please chk my post here: http://stackoverflow.com/a/22938385/676508

For me it were the cfdump. removing them solved my issue.

Participating Frequently
May 24, 2006
This is caused because the method length exceeds the size supported by the jvm. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=70201.

Ted Zimmerman
Inspiring
May 24, 2006
This is a long script but i need it, and for some reason it used to work very well. Is this occurring because Im having coldfusion process more than it was meant to? Should I write this particular script in some other language (java, C)?