JSP コンパイルが失敗し、exceeding the 65535 bytes limit メッセージが出力される
Issue
- JBoss で JSP が失敗し、以下の例外が発生します。
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/APP].[jsp]] (http-localhost/127.0.0.1:8080-2) JBWEB000236:Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException:JBWEB004062:Unable to compile class for JSP:
JBWEB004061:An error occurred at line:227 in the generated java file
The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
JBWEB004211:Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:69) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:447) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:606) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
...
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4.3.0.GA
- 5.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.