catch assertion errors in CahServlet

This commit is contained in:
Andy Janata 2012-01-18 16:39:11 -08:00
parent 979a9c4123
commit 8187147e74
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ public abstract class CahServlet extends HttpServlet {
hSession.invalidate();
returnError(response.getWriter(), ErrorCode.SESSION_EXPIRED);
} else {
handleRequest(request, response, hSession);
try {
handleRequest(request, response, hSession);
} catch (final AssertionError ae) {
getServletContext().log(ae.toString());
ae.printStackTrace();
}
}
}