Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP debugging / exception handling obtaining JSP line number in stack trace

680812Jan 20 2009
I am trying to get the line number in the JSP file in the log file when a ServletException or NullPointerException occurs.

I have tried setting the JSpServlet init paramers debug_mode, developer_mode, emit_debuginfo in global-web-application.xml in the internal j2ee container in JDeveloper 10.1.3.4 but I still get the line number in the translated java file instead.

How can I get the JSP file number instead in the log file?

09/01/20 16:01:56 javax.servlet.ServletException: / by zero
09/01/20 16:01:56 at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
09/01/20 16:01:56 at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
09/01/20 16:01:56 at admin.test__user._jspService(_test__user.java:254)
09/01/20 16:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
09/01/20 16:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
...

Note: I have simulated an exception on a JSP by dividing by zero just for testing above.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2009
Added on Jan 20 2009
0 comments
556 views