Hello ranchers,
I have this exception
[9/8/15 8:26:16:493 SGT] 0000002d SystemErr R java.lang.IllegalStateException: Cannot forward. Response already committed.
[9/8/15 8:26:16:493 SGT] 0000002d SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1146)
[9/8/15 8:26:16:494 SGT] 0000002d SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:191)
What I have in the codes of the application is a single
servlet for all actions. Its forwards each commands to specific service classes for processing.
In that single servlet...there is something like this
Whenever response.sendRedirect is called, the exception shows. The forward works normally, without any exceptions but we keep seeing the exception stack trace on the logs. Is there any quick fix to this? we saw this in production and it seem to be flooding the log files and syserr logs. The boss told me this needs to be fixed asap.
Thanks, any help would be appreciated