my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.IllegalStateException: Response already committed " Watch "java.lang.IllegalStateException: Response already committed " New topic
Author

java.lang.IllegalStateException: Response already committed

Sumanth Kalidindi
Greenhorn

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 (11.1.2.0)
Weblogic 10.3.2.0

<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:11.1.2.0]] Servlet failed with Exception
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1591)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:614)
at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:592)
at com.sun.javaws.servlet.JnlpDownloadServlet.handleRequest(JnlpDownloadServlet.java:126)
at com.sun.javaws.servlet.JnlpDownloadServlet.doGet(JnlpDownloadServlet.java:79)
at com.essbase.eas.server.WebStartDownloadServelet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)


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: 506
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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.IllegalStateException: Response already committed
 
Similar Threads
com.oroad.stxx.transform.TransformerException: Unable to retrieve template null
probelms with response.getOutputStream
java.lang.IllegalStateException: Response already committed
Finding the java file of the compiled jsp file in Weblogic 9.2
java.net.SocketException: Broken pipe