System.out.println("DispatchServlet ERROR (anyExceptionHandler): " + t);
System.out.println("DispatchServlet_OLD ERROR (anyExceptionHandler): " + t);
    public static void anyExceptionHandler(Throwable t, HttpServletResponse response) {        System.out.println("DispatchServlet ERROR (anyExceptionHandler): " + t);        if (Debug.isSet("showException")) {            t.printStackTrace();            DebugLog.printThrowable(t);        }        try {            if(!response.isCommitted()){                response.reset();                response.setHeader("Content-Description", "dods_error");                // This should probably be set to "plain" but this works, the                // C++ slients don't barf as they would if I sent "plain" AND                // the C++ don't expect compressed data if I do this...                response.setHeader("Content-Encoding", "");                // Strip any double quotes out of the parser error message.                // These get stuck in auto-magically by the javacc generated parser                // code and they break our error parser (bummer!)            }            BufferedOutputStream eOut = new BufferedOutputStream(response.getOutputStream());            OPeNDAPException oe;            if (t instanceof OPeNDAPException)                oe = (OPeNDAPException) t;            else {                String msg = t.getClass().getName()+": ";                msg += t.getMessage();                msg += " ["+t.getStackTrace()[0].getFileName()+" - line " +t.getStackTrace()[0].getLineNumber()+"]";                if (msg != null)                    msg = msg.replace('\"', '\'');                oe = new OPeNDAPException(UNDEFINED_ERROR, msg);            }            oe.print(eOut);                    } catch (IOException ioe) {            System.out.println("Cannot respond to client! IO Error: " + ioe.getMessage());            DebugLog.println("Cannot respond to client! IO Error: " + ioe.getMessage());        }    }