public void exception(final NHttpServerConnection conn, final HttpException httpex) {
AsyncHttpService httpService = (AsyncHttpService) conn.getContext()
.getAttribute(HTTP_ASYNC_SERVICE);
try {
httpService.handleException(conn, httpex);
} catch (IOException ex) {
httpService.shutdown(ex);
shutdownConnection(conn);
} catch (HttpException ex) {
System.err.println("Unexpected HTTP protocol error: " + ex.getMessage());