java error java.lang.IllegalStateException: Cannot forward after response has been committed

+1 vote
asked May 24, 2013 in bug by anonymous
Hi,

 

I get several times a day this error.

May 24, 2013 8:06:01 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet plantumlservlet threw exception
java.lang.IllegalStateException: Cannot forward after response has been committed
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
        at net.sourceforge.plantuml.servlet.PlantUmlServlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:679)
 

Could it be, that this is related to the expected input handling, as I found a similiar reference in:

http://stackoverflow.com/questions/7951331/java-lang-illegalstateexception-cannot-forward-after-response-has-been-committe   and

http://www.codeweblog.com/java-lang-illegalstateexception-cannot-forward-after-response-has-been-committed/
commented May 24, 2013 by anonymous
I use two installations, one 7966 and one 7967 both as war file using tomcat to publish.
commented Jun 18, 2013 by laplasz (310 points)
same issue here

1 Answer

0 votes
answered Jun 5, 2014 by anonymous
Same issue here. Im not an expert in the field of Tomcat, Java, or PlantUML. Is there somebody who has some pointers so i can do some more research? Thanks in advanced.
...