You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/27 16:34:24 UTC

DO NOT REPLY [Bug 13080] New: - when response.sendRedirect is executed it takes lot of time to execute and gives exception

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13080

when response.sendRedirect is executed it takes lot of time to execute and gives exception 

           Summary: when response.sendRedirect is executed it takes lot of
                    time to execute and gives exception
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina:Modules
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: softgirish@yahoo.com


when response.sendRedirect is executed it takes lot of time to execute, BUT IT 
GETS ME TO THE REQUIRED PAGE AND I GET AN EXCEPTION IN CATALINA LOGS. Exception 
is

java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
	at java.nio.charset.CharsetEncoder.throwIllegalStateException
(CharsetEncoder.java:933)
	at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
	at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar
(StreamEncoder.java:356)
	at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:413)
	at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
	at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
	at java.io.PrintWriter.close(PrintWriter.java:137)
	at org.apache.catalina.connector.ResponseBase.finishResponse
(ResponseBase.java:482)
	at org.apache.catalina.connector.HttpResponseBase.finishResponse
(HttpResponseBase.java:237)
	at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse
(HttpResponseImpl.java:287)
	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1054)
	at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1125)
	at java.lang.Thread.run(Thread.java:536)

and the the code that is executed in servlet is 


public void doGet(HttpServletRequest mRequest, HttpServletResponse res)
		throws ServletException, IOException
	{

	res.sendRedirect(res.encodeURL   
(".."+fSpr+".."+fSpr+"servlet"+fSpr+"LoginServlet"));

}
so i m not sending any data back to the client
Please help me asap. Thanx in advance.
Girish

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>