Error “code too large for try statement" is seen while creating an EAR file.
book
Article ID: KB0085074
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Resolution: Description: ========= “code too large for try statement" error seen while creating EAR file. The error trace follows: +++++++++++++++ Exception Trace com.tibco.be.parser.codegen.CompilationFailedException: C:\DOCUME~1\snegi2\LOCALS~1\Temp\BE_1304582840432\ruleSrc\be\gen\Rules\EventManagementRules\UpdateEventRule\UpdateEventRule.java:35: code too large for try statement try{ ^ C:\DOCUME~1\snegi2\LOCALS~1\Temp\BE_1304582840432\ruleSrc\be\gen\Rules\EventManagementRules\UpdateEventRule\UpdateEventRule.java:27: code too large public void execute(java.lang.Object[] objects) { ^ 2 errors
at com.tibco.be.parser.codegen.BaseGenerator.compileSourceFiles(BaseGenerator.java:220) at com.tibco.be.parser.codegen.BaseGenerator.compileSource(BaseGenerator.java:177) at com.tibco.be.parser.codegen.BaseGenerator.compileSource(BaseGenerator.java:165) at com.tibco.be.util.packaging.impl.DefaultRuntimeClassesPackager.close(DefaultRuntimeClassesPackager.java:239) . . . ------^ Error trace truncated ^--------- +++++++++++++++
Environment: ========== TIBCO Product name and version: TIBCO BusinessEvents 5.0.0 Operating System(s): All
Symptoms: ======== See the Description.
Cause: ===== The error "code too large for try statement" could be due to a Java limit. The Java language specification has limits on the size of a method. That limit is 65535 (number of bytes that the code occupies).
Resolution: ======== The solution is to try re-modularizing your code.
References: ========= None.
Issue/Introduction
Error “code too large for try statement" is seen while creating an EAR file.