File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes java.lang.IllegalStateException: Response already committed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.IllegalStateException: Response already committed " Watch "java.lang.IllegalStateException: Response already committed " New topic

java.lang.IllegalStateException: Response already committed

Sumanth Kalidindi

Joined: Feb 22, 2012
Posts: 3
I have been getting this error message daily but it has not been causing any user issues. But, I still want to get to the root of the issue or atleast solve the issue from reappearing. Can anyone please help me out.

Errors I have been facing

OS: Windows NT 6.0
Essbase Admin Servies in Hyperion (

<Feb 18, 2012 11:14:42 AM PST> <Error> <HTTP> <myservername> <EssbaseAdminServices0> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1329592482434> <BEA-101020> <[ServletContext@34644240[app:EAS module:easconsole path:/easconsole spec-version:null version:]] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(
at weblogic.servlet.internal.ServletResponseImpl.sendError(
at weblogic.servlet.internal.ServletResponseImpl.sendError(
at com.sun.javaws.servlet.JnlpDownloadServlet.handleRequest(
at com.sun.javaws.servlet.JnlpDownloadServlet.doGet(
at com.essbase.eas.server.WebStartDownloadServelet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
at weblogic.servlet.internal.WebAppServletContext.execute(

Please let me know how to overcome this error and what might be the reason for the error. Thanks in advance.

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 524
If my memory serves correctly,this exception occurs if you try to modify response object after you have performed either sendRedirect or forward.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
As I recall it is due to trying to modify the response headers after the first bufferload of response stream has been sent. Frequently due to writing some to the response and then forwarding or redirecting.

The indicated fix is to decide on redirecting or forwarding before anything gets written to the response output stream.

I agree. Here's the link:
subject: java.lang.IllegalStateException: Response already committed
jQuery in Action, 3rd edition