Mantis - Resin
Viewing Issue Advanced Details
1530 tweak always 12-29-06 07:16 05-15-07 16:26
tmonteit  
ferg  
normal  
closed 3.0.21  
no change required  
none    
none  
0001530: Code too Large Error on JSP Compiler.
A simple class generated by the www.RapidJ.com tool fails because of size limitations.

I can toggle this error on and off if by commenting out the <nested:iterate> block that iterates '3' records.

http://www.theserverside.com/discussions/thread.tss?thread_id=25469 [^]

indicates that it may be caused by a 65K limitation. 65K is a flimsy limitation.


Error:

com.caucho.java.JavaCompileException: /jsp/personnel.jsp:478: code too large for try statement
    } catch (java.lang.Throwable _jsp_e) {
      ^
C:\code\resin\webapps\APP\WEB-INF\work\_jsp\_jsp\_personnel__jsp.java:68: code too large for try statement
    try {
        ^
C:\code\resin\webapps\APP\WEB-INF\work\_jsp\_jsp\_personnel__jsp.java:15: code too large
  _jspService(javax.servlet.http.HttpServletRequest request,
  ^
Note: C:\code\resin\webapps\APP\WEB-INF\work\_jsp\_jsp\_personnel__jsp.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
    at com.caucho.java.InternalCompiler.executeInt(InternalCompiler.java)
    at com.caucho.java.InternalCompiler.compileInt(InternalCompiler.java:81)
    at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:101)
    at java.lang.Thread.run(Thread.java:619)
1. Need a way to increase the allowable size of JSP code.
2. If I can't increase the 65K limit, I need a way to tell debug how large does Resin think my code is??


Notes
(0001676)
ferg   
01-01-07 11:23   
65k is a JDK limitation. It's not a Resin limitation. There may be ways too work around some of this limitation, but the real answer is that your JSP page needs to be reduced in size.
(0001927)
ferg   
05-15-07 16:26   
JDK limitation.