zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    hdoj:2075
    hdoj:2072
    hdoj:2071
    hdoj:2070
    hdoj:2069
    test001
    hdoj:2067
    hdoj:2061
    hdoj:2058
    hdoj:2057
  • 原文地址:https://www.cnblogs.com/yi-mi-yangguang/p/6187972.html
Copyright © 2011-2022 走看看