這個問題如何解決?Cannot forward after response has been committed
這個問題如何解決?Cannot forward after response has been committed
做了一個應用
是在JBoss-3.2.7上的
使用者自己去登陸時
一點也沒問題
現在用LoadRunner去進行註冊時
用了一二個使用者做併發測試都會丟擲異常
是在執行下面語句時出錯的
this.getServletContext().getRequestDispatcher("/main.jsp").forward(req, res);
我在此語句之前已經去掉了寫到後臺語句
System.out.println(""); //這樣的語句全註釋掉了
我在server.xml裡也改過最大執行緒數為200
如下
<Connector port="8088" address="${jboss.bind.address}"
maxThreads="200" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="10" debug="0"
connectionTimeout="20000" disableUploadTimeout="true"/>
為什麼還會出這樣的錯呢?
才一二個使用者啊都出錯
想想也不太可能啊
出錯資訊是:
2005-07-22 15:00:27,656 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[loginservlet]: Servlet.service() for servlet loginservlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at com.saintbo.servlet.sys.LoginServlet.handle(LoginServlet.java:82)
at com.saintbo.servlet.MyExtendedServlet.service(MyExtendedServlet.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:536)
做了一個應用
是在JBoss-3.2.7上的
使用者自己去登陸時
一點也沒問題
現在用LoadRunner去進行註冊時
用了一二個使用者做併發測試都會丟擲異常
是在執行下面語句時出錯的
this.getServletContext().getRequestDispatcher("/main.jsp").forward(req, res);
我在此語句之前已經去掉了寫到後臺語句
System.out.println(""); //這樣的語句全註釋掉了
我在server.xml裡也改過最大執行緒數為200
如下
<Connector port="8088" address="${jboss.bind.address}"
maxThreads="200" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="10" debug="0"
connectionTimeout="20000" disableUploadTimeout="true"/>
為什麼還會出這樣的錯呢?
才一二個使用者啊都出錯
想想也不太可能啊
出錯資訊是:
2005-07-22 15:00:27,656 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[loginservlet]: Servlet.service() for servlet loginservlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at com.saintbo.servlet.sys.LoginServlet.handle(LoginServlet.java:82)
at com.saintbo.servlet.MyExtendedServlet.service(MyExtendedServlet.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:536)
相關文章
- 怎麼會出現 Cannot forward after response has been committed???ForwardMIT
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed解讀JavaExceptionErrorMIT
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- java.lang.IllegalStateException: getOutputStream() has already been called for this response解決方案JavaException
- java.lang.IllegalStateException: getOutputStream() has already been called for this responseJavaException
- PHP Warning: exec() has been disabled for security 問題解決辦法PHP
- Caused by: java.lang.IllegalStateException: getWriter() has already been called for this responseJavaException
- How To Retry Multiple Errored Approval Workflow Processes After A Fix Or Patch Has Been ImplementedErrorAPP
- getOutputStream() has already been called
- 業務出海,企業該如何解決這兩個核心問題?
- TSM 5.4 ANR0110E An unexpected system date has been detected 問題的解決
- 如何解決 After Effects報警
- JIRA startup failed, JIRA has been locked.AI
- InnoDB Plugin has been upgraded to version 1.0.8Plugin
- 解決The jar file has no source attachment問題JAR
- 這個問題誰能解決啊?
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- react-解決 fetch 跨域問題:Access to fetch at XXX from origin YYY has been blocked by CORS policyReact跨域BloCCORS
- REMOTE HOST IDENTIFICATION HAS CHANGED 問題解決REMIDE
- Jquery DataTables解決 Cannot reinitialise DataTable 問題jQuery
- RuntimeError: An attempt has been made to start a new process before the current process hasError
- 如何解決After Effects報警最後日誌訊息是: GPU Sniffer 10的問題GPU
- Uncaught SyntaxError: Identifier 'Geometry' has already been declaredErrorIDE
- An unexpected error has been detected by Java Runtime EnvironmentErrorJava
- 【HMS Core】ToolKit,Merchant Service has not been enabled yet
- Transaction rolled back because it has been marked as rollback-only
- 解決pycharm問題:module 'pip' has no attribute 'main'PyCharmAI
- MySQL server has gone away 問題的解決方法MySqlServerGo
- TypeError: Descriptors cannot not be created directly問題的解決Error
- 如何用模式解決下面這個問題模式
- springcloudconfig訪問gitee報錯:Authentication is required but no CredentialsProvider has been registeredSpringGCCloudGiteeUIIDE
- 跨域問題?如何解決?跨域
- 為什麼JSON.parse會損壞大數字,如何解決這個問題?JSON
- Thread 1: Fatal error: init(coder:) has not been implementedthreadError
- ORA-04068: existing state of packages has been discardedPackage
- A significant part of sql server process memory has been paged outNifiSQLServer
- Cannot connect on socket(25)_NetBackup 問題解決
- Recover physical standby database after loss of archive log – roll forward(轉)DatabaseHiveForward