Http Statis 500 -错误笔记
Posted 一米阳光!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Http Statis 500 -错误笔记相关的知识,希望对你有一定的参考价值。
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException: Cannot forward after response has been committed com.servlet.HandleRegister.doPost(HandleRegister.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:650) javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
当你有多个跳转的页面的语句时候,好好检查一下,当 转发 或者 重定向的时候,需要在后加一个retrun 即可。
服务器中不允许多次跳转,否则会下面这个错误。
因为服务器端使用sendRedirect跳转到客户端的时候,不能在使用req.getRequestDispatcher("跳转的页面").forward(req, reqs);
跳转;
Apache Tomcat/6.0.13
以上是关于Http Statis 500 -错误笔记的主要内容,如果未能解决你的问题,请参考以下文章
UseJwtBearerAuthentication 在令牌到期时返回 HTTP 500