You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2004/10/22 20:09:33 UTC

DO NOT REPLY [Bug 31853] New: - jstl/fmt - SetLocaleSupport.java:getFormattingLocale calls setResponseLocale

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31853

jstl/fmt - SetLocaleSupport.java:getFormattingLocale calls setResponseLocale

           Summary: jstl/fmt - SetLocaleSupport.java:getFormattingLocale
                    calls setResponseLocale
           Product: Taglibs
           Version: 1.0
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: kenny_grimm@stchome.com


Using the jstl/fmt tag can cause "java.lang.IllegalStateException: Response is
already committed!" on Oracle(9|10)iAS.  I believe that the stack trace provided
(see below) indicates that this is due to a fmt:formatDate which is attempting
to setLocale after the response buffer has already been written.  This probably
only occurs when the buffer size reaches it's limit before this code is
encountered.  It looks like FormatDateSuport.java calls
SetLocaleSupport.java:getFormattingLocale which then calls setResponseLocale.

My question / concern is whether there is a way to keep it from attempting to
set the locale since this cannot be done once the response has begun.  Is there
a reason that it must do this and if so is there a workaround?

at
com.evermind.server.http.EvermindHttpServletResponse.setLocale(EvermindHttpServletResponse.java:1808)
	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.setResponseLocale(SetLocaleSupport.java:234)
	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.getFormattingLocale(SetLocaleSupport.java:314)
	at
org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:148)
	at _jsp_page._jspService(_jsp_page.java:4518)

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org