Discussions

Web tier: servlets, JSP, Web frameworks: Code too large for try statement

  1. Code too large for try statement (2 messages)

    When i'm executing a JSP i got error "Code too large for try statement" on Weblogic8.1.Can anyone please find me the reason for this error.

    Threaded Messages (2)

  2. Code too large for try statement[ Go to top ]

    jsp file length must be within 1200 lines.
  3. Code too large for try statement[ Go to top ]

    Solutions :

    1. Refactor the JSP page into smaller page and use include directive

    2.Use the -noTryBlocks switch for JSPC, see
    http://e-docs.bea.com/wls/docs61/jsp/reference.html

    3. Try the solution suggested at
    http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_solution&answerpage=solution&page=wls/S-26541.htm