tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gal Shachor <shac...@il.ibm.com>
Subject Re: bug (?) with nsapi redirector on iPlanet 4.1 ?
Date Mon, 05 Jun 2000 09:34:04 GMT


Taso Lyristis wrote:
> 
> Below are some log excerpts (nsapi.log, tomcat stderr, and tomcat.log)
> that occur right after I click submit:
> 
> ==> nsapi.log <==
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 40
> [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
> [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
> [jk_connect.c (140)]: jk_open_socket, return, sd = 40
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 40
> [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
> [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12
> start sequence
> [jk_ajp12_worker.c (395)]: ajpv12_handle_request, sending the headers
> [jk_ajp12_worker.c (414)]: ajpv12_handle_request, sending the
> terminating mark
> [jk_ajp12_worker.c (427)]: ajpv12_handle_request, sending the request
> body
> [jk_ajp12_worker.c (441)]: ajpv12_handle_request, read 300 bytes
> [jk_ajp12_worker.c (449)]: ajpv12_handle_request, sent 300 bytes
> [jk_ajp12_worker.c (441)]: ajpv12_handle_request, read 5 bytes
> [jk_ajp12_worker.c (449)]: ajpv12_handle_request, sent 5 bytes
> [jk_ajp12_worker.c (441)]: ajpv12_handle_request, read 2 bytes
> [jk_ajp12_worker.c (449)]: ajpv12_handle_request, sent 2 bytes
> [jk_ajp12_worker.c (437)]: In ajpv12_handle_request, failed to read from

What's written here is that the nsapi_redirector failed to read your
upload data from the web server! It first read 300byte and then 
another 5,5,2 and 2 bytes but then the server returned an error
response! 

The exact loop that breaks is 
            for(i = 0 ; i < l ; i++) {
                ch = netbuf_getc(inbuf);              
                if(IO_ERROR == ch || IO_EOF == ch) {
                    break;
                }

                buf[i] = ch;
            }
So as you see, the server returns information that specifies end of file 
or even worst IO error. 

As a result of this error the redirector closed the connection to Tomcat
and this is why you got the exception.

I must say that this is rather puzzling, but I do not think that this is 
a redirector bug, I mean, I act according to the "instruction" that the
server
gives me... It looks as if Netscape fails to read the uploaded file.

	Gal Shachor

Mime
View raw message