<%@ page import="java.io.*, java.lang.reflect.*" %>
DayTrader Error DayTrader

An Error has occured during DayTrader processing.
The stack trace detailing the error follows.

Please consult the application server error logs for further details.

<% String message = null; int status_code = -1; String exception_info = null; String url = null; try { Exception theException = null; Integer status = null; //these attribute names are specified by Servlet 2.2 message = (String) request.getAttribute("javax.servlet.error.message"); status = ((Integer) request.getAttribute("javax.servlet.error.status_code")); theException = (Exception) request.getAttribute("javax.servlet.error.exception"); url = (String) request.getAttribute("javax.servlet.error.request_uri"); // convert the stack trace to a string StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); theException.printStackTrace(pw); pw.flush(); pw.close(); if (message == null) { message = "not available"; } if (status == null) { status_code = -1; } else { status_code = status.intValue(); } if (theException == null) { exception_info = "not available"; } else { exception_info = theException.toString(); exception_info = exception_info + "
" + sw.toString(); sw.close(); } } catch (Exception e) { e.printStackTrace(); } out.println("

Processing request:" + url); out.println("
StatusCode: " + status_code); out.println("
Message:" + message); out.println("
Exception:" + exception_info); %>

DayTrader Error DayTrader