posts - 19, comments - 53, trackbacks - 0, articles - 283
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          日歷

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          我參與的團(tuán)隊(duì)

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 358360
          • 排名 - 155
          [11:04:33.250] java.lang.IllegalStateException: Can't sendRedirect() after data has committed to the client.
          [11:04:33.250]  at com.caucho.server.connection.AbstractHttpResponse.sendRedirect(AbstractHttpResponse.java:567)
          [11:04:33.250]  at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:109)
          [11:04:33.250]  at com.caucho.server.connection.ResponseWrapper.sendRedirect(ResponseWrapper.java:276)
          [11:04:33.250]  at com.caucho.server.connection.ResponseAdapter.sendRedirect(ResponseAdapter.java:157)
          [11:04:33.250]  at yixun.wap.tools.GetRequest.ToPage(GetRequest.java:76)
          [11:04:33.250]  at _jsp._page._user._login._userlogindo__jsp._jspService(_userlogindo__jsp.java:90)
          [11:04:33.250]  at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
          [11:04:33.250]  at com.caucho.jsp.Page.pageservice(Page.java:586)
          [11:04:33.250]  at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:190)
          [11:04:33.250]  at yixun.wap.filter.ReplaceTextFilter.doFilter(ReplaceTextFilter.java:77)
          [11:04:33.250]  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
          [11:04:33.250]  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
          [11:04:33.250]  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
          [11:04:33.250]  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
          [11:04:33.250]  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
          [11:04:33.250]  at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591)
          [11:04:33.250]  at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
          [11:04:33.250]  at java.lang.Thread.run(Thread.java:619)

          關(guān)于這個(gè)問題,以前是能經(jīng)常碰到的,也沒仔細(xì)的去研究,這段時(shí)間又碰到了,陰魂不散的。今天剛好有時(shí)間查查,
          網(wǎng)上都說是有out.println(),也就是說在轉(zhuǎn)發(fā)的同時(shí),容器回去檢查該連接是否與客戶端正在傳輸數(shù)據(jù)。

          所以知道原理了,操作起來就好辦了,直接response.getWriter().close();
          就是說關(guān)閉response的輸出,再進(jìn)行轉(zhuǎn)發(fā)
          主站蜘蛛池模板: 象州县| 临夏县| 孝昌县| 枣强县| 西宁市| 宜宾市| 唐山市| 泰安市| 化隆| 成安县| 通许县| 淳化县| 唐山市| 正蓝旗| 河津市| 友谊县| 新闻| 黔南| 嫩江县| 清苑县| 化隆| 开江县| 句容市| 黄浦区| 中超| 钟祥市| 轮台县| 武定县| 赣榆县| 沧源| 靖西县| 灵石县| 桂平市| 新化县| 宁陕县| 锦州市| 永泰县| 崇义县| 宜黄县| 安阳县| 江陵县|