This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.IllegalStateException: Response already committed

 
Sumanth Kalidindi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic