uCosminexus Application Server, Messages

[Contents][Back][Next]

KDJE39231-W

The number of lines in the generated _jspService method or doTag method has exceeded 1000. (J2EE application = aa....aa, context root = bb....bb, file = cc....cc, number of lines = dd....dd)

aa....aa: The J2EE application name in the case of the J2EE server mode, and a null character string in the case of the servlet engine mode, cjjspc command or cjjsp2java command
bb....bb: The context root name in the case of the J2EE server mode or the servlet engine mode, and a null character string in the case of the cjjspc command or cjjsp2java command
cc....cc: Path within the Web application of this JSP file or the tag file, and the absolute path of the JSP file in the case of the cjjsp2java command (in the case of a tag file saved in a JAR file, however, output is in the following format: 'Path within the Web application of the JAR file (entry = path-within-the-JAR-file)')
dd....dd: Number of lines including the blank lines or comment lines of the generated _jspService method or doTag method
Description
In the case of the J2EE server mode or the cjjspc command
The number of lines of the _jspService method or the doTag method generated from the JSP file or the tag file has exceeded 1000, including the comments and blank lines.
In the case of the servlet engine mode or the cjjsp2java command
The number of lines of the _jspService method generated from the JSP file has exceeded 1000, including the comments and blank lines.
Action
From the specifications of the Java virtual machine, the byte code of one method needs to be within 64 kilobytes. If the byte code of a method exceeds 64 kilobytes, it will result in an error during the generation of class file, or the exception java.lang.LinkageError will occur when the class is loaded.
If the size of one method is within 64 kilobytes, but is still extremely large, the following adverse effects might occur:
  • A lot of time would be taken for GC processing.
  • A lot of time would be taken for JIT compilation.
  • A lot of memory would be consumed for JIT compilation.
As a result, the size of one method on the Java source is recommended to be within 500 lines, excluding comments and blank lines.
Change JSP as follows to reduce the number of lines of Java code generated from JSP:
In the case of JSP file
Divide the JSP file through dynamic inclusion (include action).
In the case of tag file
Either divide the tag file used from the JSP file into multiple tag files, or divide the tag file so as to invoke other tag files from it.