Home / Function/ handleCommittedResponse() — spring-boot Function Reference

handleCommittedResponse() — spring-boot Function Reference

Architecture documentation for the handleCommittedResponse() function in ErrorPageFilter.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  c19a7bcd_5cad_527c_de6f_3fff3ee47590["handleCommittedResponse()"]
  5058c8a8_c646_da09_10ff_6d8fa528e734["handleErrorStatus()"]
  5058c8a8_c646_da09_10ff_6d8fa528e734 -->|calls| c19a7bcd_5cad_527c_de6f_3fff3ee47590
  81fd733a_b0d8_277d_a02d_2e68ece549e6["handleException()"]
  81fd733a_b0d8_277d_a02d_2e68ece549e6 -->|calls| c19a7bcd_5cad_527c_de6f_3fff3ee47590
  655f944a_f402_a15d_709f_02257b205549["isClientAbortException()"]
  c19a7bcd_5cad_527c_de6f_3fff3ee47590 -->|calls| 655f944a_f402_a15d_709f_02257b205549
  fbdcf27b_8fbe_5d4a_4f27_ecfe4ec96d00["getDescription()"]
  c19a7bcd_5cad_527c_de6f_3fff3ee47590 -->|calls| fbdcf27b_8fbe_5d4a_4f27_ecfe4ec96d00
  style c19a7bcd_5cad_527c_de6f_3fff3ee47590 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java lines 206–224

	private void handleCommittedResponse(HttpServletRequest request, @Nullable Throwable ex) {
		if (isClientAbortException(ex)) {
			return;
		}
		String message = "Cannot forward to error page for request " + getDescription(request)
				+ " as the response has already been"
				+ " committed. As a result, the response may have the wrong status"
				+ " code. If your application is running on WebSphere Application"
				+ " Server you may be able to resolve this problem by setting"
				+ " com.ibm.ws.webcontainer.invokeFlushAfterService to false";
		if (ex == null) {
			logger.error(message);
		}
		else {
			// User might see the error page without all the data here but throwing the
			// exception isn't going to help anyone (we'll log it to be on the safe side)
			logger.error(message, ex);
		}
	}

Domain

Subdomains

Calls

  • getDescription()
  • isClientAbortException()

Frequently Asked Questions

What does handleCommittedResponse() do?
handleCommittedResponse() is a function in the spring-boot codebase.
What does handleCommittedResponse() call?
handleCommittedResponse() calls 2 function(s): getDescription, isClientAbortException.
What calls handleCommittedResponse()?
handleCommittedResponse() is called by 2 function(s): handleErrorStatus, handleException.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free