tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <>
Subject [TC403] "Cannot find message associated with key 'responseStream.suspended'"
Date Tue, 02 Apr 2002 14:48:26 GMT
[TC4.0.3, Jre 1.4.0, Linux 7.2]
If you after a redirect try to close the output stream as in:

        try {
            // Getting encoding
            String encoding = res.getCharacterEncoding();
            // Setting content type
            res.setContentType("text/html; charset=" + encoding);
            // Getting the OutputStream (just to be able to close it)
            OutputStream out = res.getOutputStream();
            // Sending the redirect
            // close output stream
        catch (IOException e) {
            throw new ServerException("Got IOException while trying to redirect user to ["+Configuration.getDEFAULT_MAINPAGE()+"].",

You get weird errors. I had to do this to be sure that the client exited,
a load tester package (loadsim, Java stuff, based on some Apache stuff,
using or whatever it's called) I used didn't "let
go" (but the web browsers did) unless I did this.

This is what I get:

[Nested Exception] this: com.corelets.api.ServerException: Got IOException while trying to
redirect user to [Renderer]., nested: Cannot find message associated
with key 'responseStream.suspended'
        at com.corelets.servlets.Parameters.doCCSGet(
        at com.corelets.servlets.CCSServlet.callServiceMethod(

This is the "nested exception": Cannot find message associated with key 'responseStream.suspended'
        at org.apache.catalina.connector.http.HttpResponseStream.close(
        at com.corelets.servlets.Parameters.doCCSGet(
        at com.corelets.servlets.CCSServlet.callServiceMethod(
        at com.corelets.servlets.CCSServlet.showAppropriatePage(
        at com.corelets.servlets.CCSServlet.process2(
        at com.corelets.servlets.CCSServlet.process(
        at com.corelets.servlets.CCSServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message