DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26006>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26006 Friendlier error message for "Illegal target of jump or branch" Summary: Friendlier error message for "Illegal target of jump or branch" Product: Tomcat 4 Version: 4.0.4 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Unknown AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We had a developer get bitten by this today, and I remember getting bitten with it a while ago, so I thought I'd post a suggestion. When you create a JSP that's too big that causes the generated method to go past the 64K limit you get an error like this: > ----------------------------------------------------------------- > javax.servlet.ServletException: (class: org/apache/jsp/desktop_0005fresults_0005fdetail$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal target of jump or branch > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683) > at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) > at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) > at com.templar.it.fed.dm.AbstractDfmDisplayManager.forwardToPage(AbstractDfmDisplayManager.java:408) > at com.templar.it.fed.dm.AbstractDfmDisplayManager.doGet(AbstractDfmDisplayManager.java:392) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) My suggested enhancement is to check for that specific illegal jump error and if it happens, append an error message like "Your JSP file may have generated a method larger than 64K. Please visit this FAQ/use jsp:include/ etc etc" Just a suggestion. thanks! john --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]