java.lang.IllegalStateException: Cannot call sendError() after the response has been committe

1. Description of the problem

严重: Servlet.service() for servlet [default] in contextwith path [/OxygenCloud] threw exception

java.lang.IllegalStateException:Cannot call sendError() after the response has been committed

 

 

 

2, problem analysis

Judgment "Cannotcall sendError () after the response has been committed" an error from the literal meaning, "When the response is submitted can not call sendError ()".

This error occurs, it should be due to multiple response, it can be understood, after the http server to send response closed the socket, this time the response is sent again to the http client will have this problem.

example:

 

 

 

 

 

 

3, problem solving

View the situation inside my code:

 

 Restart operation, this problem is gone.

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/12079402.html