uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

6.2.16 Precautions related to size limitations for JavaVM methods

If a method exceeding 64 KB exists in JavaVM, an error occurs during the generation of the class file or the java.lang.LinkageError exception occurs when the class is loaded. Therefore, the byte code for one method must have a size within 64 KB.

Also, even if the size is within 64 KB, if a method with an extremely big size exists, the following adverse effects might occur:

In the Web application, the byte code of one method might exceed 64 KB due to the auto-generated java source code. The following points describe the auto-generation of the java source code and the reviewing method when the method size is big.

Organization of this subsection
(1) Auto-generation of the java source code
(2) Reviewing method when the method size is big

(1) Auto-generation of the java source code

The auto-generation of the java source code is as follows:

(2) Reviewing method when the method size is big

When the number of lines of the methods for auto-generated java source code exceeds 1000 lines, including the comments and blank lines, the messages KDJE39231-W and KDJE39333-W are output.

If a message is output, review the body contents of the JSP file, tag file, or the custom tag.

The following are the reviewing methods for each location to be reviewed: