posts - 19, comments - 53, trackbacks - 0, articles - 283
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
          [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)于這個問題,以前是能經(jīng)常碰到的,也沒仔細(xì)的去研究,這段時間又碰到了,陰魂不散的。今天剛好有時間查查,
          網(wǎng)上都說是有out.println(),也就是說在轉(zhuǎn)發(fā)的同時,容器回去檢查該連接是否與客戶端正在傳輸數(shù)據(jù)。

          所以知道原理了,操作起來就好辦了,直接response.getWriter().close();
          就是說關(guān)閉response的輸出,再進(jìn)行轉(zhuǎn)發(fā)
          主站蜘蛛池模板: 宣城市| 温州市| 邵武市| 上饶市| 垦利县| 澄迈县| 五常市| 泰兴市| 长海县| 万年县| 华宁县| 中西区| 新建县| 青川县| 临洮县| 六枝特区| 吴旗县| 昭通市| 延津县| 无棣县| 抚远县| 星座| 苏尼特右旗| 仁布县| 宁明县| 依安县| 南溪县| 长春市| 蒙自县| 辉南县| 永安市| 聂荣县| 廊坊市| 旌德县| 易门县| 阜康市| 乌海市| 吉林市| 辛集市| 五河县| 金门县|