HTTP Status 500 ? Internal Server Error

Posted 邓戈麟

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTTP Status 500 ? Internal Server Error相关的知识,希望对你有一定的参考价值。

 

getWriter()和getOutputStream()不能同时调用

 

HTTP Status 500 ? Internal Server Error


Type Exception Report

Message getWriter() has already been called for this response

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.IllegalStateException: getWriter() has already been called for this response
	org.apache.catalina.connector.Response.getOutputStream(Response.java:590)
	org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:194)
	com.itheima.content.ErrorServlet.doGet(ErrorServlet.java:34)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:635)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

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


Apache Tomcat/8.5.16

 

以上是关于HTTP Status 500 ? Internal Server Error的主要内容,如果未能解决你的问题,请参考以下文章

HTTP Status 500 - --------------------------------------------------------------------------------

HTTP Status 500 - 如何解决

Tomcat 提示 HTTP Status 500 – Internal Server ErrorTomcat 提示 HTTP Status 500 – Internal Server Error(示

HTTP Status 500 怎么解决?

HTTP Status 500错误怎么解决

http status 500 tomcat问题