Cannot set header Response already committed message repeating in SystemOut.log for WebSphere Commerce

Technote (troubleshooting)


Problem(Abstract)

You cannot set header responses that are already committed message repeating in the SystemOut.log file for IBM WebSphere Commerce when you notice your SystemOut.log has repeating exceptions (IllegalStateException).

Symptom

There are no noticeable problems on the storefront, but the SystemOut.log contains multiple entries of the message.

You notice exceptions similar to the following:

[7/22/08 22:51:38:116 PDT] 00000056 SRTServletRes W WARNING: Cannot set header. Response already committed.
[7/22/08 22:51:38:117 PDT] 00000056 CommerceSrvr E com.ibm.commerce.struts.ECActionServlet processRequest CMN0420E: The following command e xception has occurred during processing:
"java.lang.IllegalStateException".java.lang.IllegalStateException
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.
sendRedirectWithStatusCode(WebAppDispatcherContext.java:554)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.
sendRedirect(WebAppDispatcherContext.java:511)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.
sendRedirect(SRTServletResponse.java:907)
at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:170)



Cause

This problem occurs when you have the Cookie Acceptance Test enabled in wc-server.xml.


<cookie acceptance="true"
age="-1"
display="false"
domain=""
enabled="true"
path="/"
persistence="wcs" />

There is a defect in the code that would create this exception.

The cookie acceptance test , if enabled, informs the customer that if their browser does not support cookies, or if they have turned off cookies, they need a browser that supports cookies to browse the WebSphere Commerce site. This could hinder performance though if enabled.


Resolving the problem

Either disable the cookie acceptance test, or upgrade to WebSphere Commerce 6.0.0.5 or newer level. You can obtain Fix Pack 5 (6.0.0.5) or newer from the WebSphere Commerce Fixes by version page.

Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce - Express Runtime i5/OS, Linux, Windows 6.0
Commerce WebSphere Commerce Professional Edition Runtime AIX, i5/OS, Linux, Solaris, Windows 6.0

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Commerce Enterprise
Runtime

Software version:

6.0

Operating system(s):

AIX, Linux, Solaris, Windows, i5/OS

Software edition:

All Editions

Reference #:

1316420

Modified date:

2010-10-12

Translate my page

Machine Translation

Content navigation