Results 1 to 3 of 3
Thread: Code too large for try statement
- 01-09-2009, 10:45 AM #1
Member
- Join Date
- Jan 2009
- Posts
- 2
- Rep Power
- 0
Code too large for try statement
Hi,
I am using JDK 1.4.2_08 , and Weblogic 8.1
We have a JSP file that have 5 include files. I used <%@ include ..%> directive to include all the pages.
I have given some conditions and added a few more cmponents. While pre-compiling the JSP pages with APPC I am getting the following error.
[java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvok er.java:174)
[java] at weblogic.appc.compileWAR(appc.java:866)
[java] at weblogic.appc.compileWAR(appc.java:822)
[java] at weblogic.appc.compileInput(appc.java:472)
[java] at weblogic.appc.runBody(appc.java:186)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
[java] at weblogic.appc.main(appc.java:1037)
[java] java.lang.Exception: [Compilation errors : ]
[java]\WEB-INF\classes\jsp_servlet\_up\_tiles\__updateCustome r.java:11900: code too large for try statement
[java] } catch (Throwable __ee) {
[java] ^
[java] \Temp\appcgen\WEB-INF\classes\jsp_servlet\_up\_tiles\__updateCustome r.java:1323: code too large
[java] public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
[java] ^
[java] Note: Some input files use or override a deprecated API.
[java] Note: Recompile with -deprecation for details.
[java] 2 errors
[java] at weblogic.jspc.doCompile(jspc.java:864)
[java] at weblogic.jspc.runJspc(jspc.java:654)
[java] at weblogic.jspc.runJspc(jspc.java:444)
[java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvok er.java:164)
[java] at weblogic.appc.compileWAR(appc.java:866)
[java] at weblogic.appc.compileWAR(appc.java:822)
[java] at weblogic.appc.compileInput(appc.java:472)
[java] at weblogic.appc.runBody(appc.java:186)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
[java] at weblogic.appc.main(appc.java:1037)
Also i have tried out the following solutions.
I have used <jsp:include .../> instead of <%@include .. %>
Because of this all the dynamic components and custom tag components are not displayed.
Then i used the following solution.
<jsp-descriptor>
<jsp-param>
<param-name>
noTryBlocks
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>
I have added the above in weblogic.xml file.
but also my problem is not resolved.
Please help me out in solving this.
- 01-09-2009, 11:07 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
upgrade your server or break down large jsp into smaller jsps
- 01-09-2009, 11:49 AM #3
Member
- Join Date
- Jan 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Getting rid of commas in large numbers?
By wwuster in forum Advanced JavaReplies: 12Last Post: 03-05-2012, 10:35 AM -
Compare 2 large files
By bezudar in forum Advanced JavaReplies: 3Last Post: 11-23-2008, 02:18 AM -
OutofMemory while downloading large files through FTP
By deb_santanu in forum Advanced JavaReplies: 0Last Post: 11-13-2008, 01:04 PM -
Eclipse with VERY LARGE source trees
By wyrickre in forum EclipseReplies: 0Last Post: 02-01-2008, 02:23 AM -
Statement or Prepared Statement ?
By paty in forum JDBCReplies: 3Last Post: 08-01-2007, 04:45 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks