You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by John <jo...@jak.com> on 2006/04/28 20:39:43 UTC
It seems to be completely impossible to debug this stuff....
Everything seems to be so abstracted with JSP/JSF/myFaces. All I know is
that the exception was thrown in this code (compiled JSP) and that
pageContext was not null.
Because the stack trace last reference to the code is the catch line:
if (_jspx_page_context != null)
_jspx_page_context.handlePageException(t);
----------------------------------------------------------------
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
if (_jspx_meth_layout_main_0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null)
_jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null)
_jspxFactory.releasePageContext(_jspx_page_context);
}
Re: It seems to be completely impossible to debug this stuff....
Posted by Mike Kienenberger <mk...@gmail.com>.
On 4/28/06, John <jo...@jak.com> wrote:
> Everything seems to be so abstracted with JSP/JSF/myFaces. All I know is
> that the exception was thrown in this code (compiled JSP) and that
> pageContext was not null.
[Warning: No useful information is contained in this post -- it's
entirely an anti-JSP propaganda tool]
Welcome to the wonderful world of jsp :)
That's why JSP alternatives like Facelets (and Velocity and Tapestry
outside of JSF) advertise "line precise error reporting" as an
advantage, even though you'd think this would be default behavior
rather than a marketing "feature."
http://jsfcentral.com/articles/facelets_2-2.html
http://wiki.apache.org/jakarta-velocity/YmtdErrorHandling