You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fabio Mengue <fa...@ccuec.unicamp.br> on 2003/01/06 19:44:04 UTC

Re: 4.1.17 Problems - Possibly Coyote Connector?

Hi Torsten,

Sorry the delay (and for sending a copy directly to your address). I got 
a little vacation :)

Torsten Fohrer wrote:

>Please try this steps.....
>
>1. hang on catalina.out, access.log 
>
OK. I assume that access.log is localhost_log.<date>, is that correct ?

>2. request the page with the browser => something changes in logs?
>
Yes. I get several GC info (-verbose:gc in setclasspath.sh) on 
catalina.out, and on localhost_log, I get several lines like

2003-01-06 16:19:19 StandardContext[/des]:   Trying exact match
2003-01-06 16:19:19 StandardContext[/des]:   Trying prefix match
2003-01-06 16:19:19 StandardContext[/des]:  Mapped to servlet 
'org.apache.catalina.INVOKER.pckSipeServlet.ConsultaProducao.ControleConsultarProducao' 
with servlet path 
'/servlet/pckSipeServlet.ConsultaProducao.ControleConsultarProducao' and 
path info 'null' and update=true
2003-01-06 16:19:23 StandardContext[/des]: Mapping contextPath='/des' 
with 
requestURI='/des/servlet/pckSipeServlet.ConsultaOrgao.ControleConsultarOrgao' 
and 
relativeURI='/servlet/pckSipeServlet.ConsultaOrgao.ControleConsultarOrgao'

Looks like one of this sets per request.

>3. add some System.out.println() at beginning and end of the servlet
>
The servlet is kinda complicated (generated by VisualAge Generator), but 
I think I got it.

>4. request the page again with the browser => output of the System.out.println 
>
Well. Lemme say that on port 8083 (HttpConnector), everything went OK, 
and I was able to see my println on catalina.out. Localhost_log is 
almost the same as above.

On port 8080 (Coyote) I got the following exception (and the blank screen):

--------- UNCAUGHT EXCEPTION ---------
java.lang.IllegalStateException: Cannot create a session after the 
response has been committed
        at 
org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884)
        at 
org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
        at 
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:365)
        at 
br.unicamp.ccuec.servlet.http.VisualServlet.getSession(Unknown Source)
        at 
pckAdcoGUIComum.ControleErro.ControleErro.mtSalvaErroGenericoArquivo(Unknown 
Source)
        at pckAdcoGUIComum.ControleErro.ControleErro.mtSalvaErro(Unknown 
Source)
        at 
pckAdcoGUIComum.ControleErro.ControleErro.mtDefineErro(Unknown Source)
        at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.handleException(Unknown 
Source)
        at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.mtTrataConsultarProducao(Unknown 
Source)
        at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.connEtoM1(Unknown 
Source)
        at 
pckSipeServlet.ConsultaProducao.ControleConsultarProducao.requestReceived(Unknown 
Source)
        at 
br.unicamp.ccuec.servlet.http.VisualServlet.fireRequestReceived(Unknown 
Source)
        at br.unicamp.ccuec.servlet.http.VisualServlet.service(Unknown 
Source)
        at 
br.unicamp.ccuec.servlet.http.Router.forwardToServiceHandler(Unknown Source)
        at br.unicamp.ccuec.servlet.http.Router.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

and some more stuff I deleted.

If I hit "Reload" once (sometimes twice), things work (no exception, I 
see my println on catalina.out and get data on the browser). If I hit 
"Reload" again, I get the exception again...

I don't know if this is time related or has something to do with my 
application. Some people wrote me directly saying that they had the same 
problem and it disapeared when they switched to HttpConnector.

I don't really understand the cause of this exception... Seems to be 
related to getSession() method. I'm not aware of any changes in the 
interface... And I did not tried an older version of the JDK (I'm using 
1.4.1_01 and 1.3.1_06).

Thanks a lot for your time,

Fabio.

>ok?
>
>On Thursday 19 December 2002 18:50, you wrote:
>  
>
>>Remy Maucherat wrote:
>>    
>>
>>>Fabio Mengue wrote:
>>>      
>>>
>>>>Hello,
>>>>
>>>>Did not work for me. I still get the blank pages. Mine are servlet
>>>>related, not JSP related.
>>>>        
>>>>
>>>The bug can affect servlets which use a Writer. The same patch should
>>>fix it.
>>>      
>>>
>>I'm sorry... But it didn't.
>>
>>What can I do to help figure this out ? I'm not directly involved with
>>the developers, so I don't know exactly what they are using. If the
>>Writer class you said is related to HttpServletResponse, then they are
>>using it.
>>
>>I don't get any output of it on the log files, I just know that request
>>is processed, and the response is a blank page.
>>
>>And on the machine next to mine, connected to port 8083, everything is
>>fine.
>>
>>Thanks a lot,
>>
>>Fabio.
>>
>>    
>>
>>>Remy
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>><ma...@jakarta.apache.org>
>>>For additional commands, e-mail:
>>><ma...@jakarta.apache.org>
>>>      
>>>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>

-- 
Fabio Mengue - Centro de Computacao - Unicamp
fabio@ccuec.unicamp.br       fabio@unicamp.br
----------------------------------------------------------------
When explaining a command, or language feature, or hardware widget, first describe the problem it is designed to solve. David Martin



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