Results 1 to 3 of 3
  1. #1
    vravindran is offline Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Thumbs up 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.

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default

    upgrade your server or break down large jsp into smaller jsps

  3. #3
    vravindran is offline Member
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Default

    Thanks mtyoung.

    What can i do to upgrade my server?

    Thanks in advance
    Vasanth

Similar Threads

  1. Getting rid of commas in large numbers?
    By wwuster in forum Advanced Java
    Replies: 12
    Last Post: 03-05-2012, 11:35 AM
  2. Compare 2 large files
    By bezudar in forum Advanced Java
    Replies: 3
    Last Post: 11-23-2008, 03:18 AM
  3. OutofMemory while downloading large files through FTP
    By deb_santanu in forum Advanced Java
    Replies: 0
    Last Post: 11-13-2008, 02:04 PM
  4. Eclipse with VERY LARGE source trees
    By wyrickre in forum Eclipse
    Replies: 0
    Last Post: 02-01-2008, 03:23 AM
  5. Statement or Prepared Statement ?
    By paty in forum JDBC
    Replies: 3
    Last Post: 08-01-2007, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •