HTTP Status 500 - Cannot call sendError() after the response has been committed

type Exception report

message Cannot call sendError() after the response has been committed

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
	com.tongweb.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:458)
	com.tongweb.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:761)
	com.tongweb.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:430)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	filter.HtmlFilter.doFilter(HtmlFilter.java:48)

note The full stack trace of the root cause is available in the logs.