tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taso Lyristis <t...@lyrisoft.com>
Subject bug (?) with nsapi redirector on iPlanet 4.1 ?
Date Sun, 04 Jun 2000 09:54:59 GMT
Hello, 

I am experiencing a problem when invoking a JSP page that accepts a file
upload via a multipart request.  This particular page works when using
Tomcat directly, but fails when invoking it through iPlanet via the
redirector.  Furthermore, it also works with Apache and mod_jserv, so I
am concluding the the problem is somewhere in the netscape redirector.

My configuration: iPlanet 4.1 on Sun 2.6, Tomcat 3.1 release, Sun
JDK1.2.2.  Initially I was using the nsapi_redirector from the Tomcat
3.1 distribution, but I just upgraded to the latest from the public cvs
server.  They both show identical behavior with respect to this
problem.  The log excerpts below are from the more recent one, because
the old one didn't flush! :)

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
the web server
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = 40
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

==> Tomcat stderr <==
HANDLER THREAD PROBLEM: java.lang.NullPointerException
java.lang.NullPointerException
        at
org.apache.tomcat.service.connector.AJP12ResponseAdapter.sendStatus(Ajp12ConnectionHandler.java:439)
        at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAdapter.java:111)
        at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServletOutputStream.java:127)
        at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:239)
        at
org.apache.tomcat.core.BufferedServletOutputStream.close(BufferedServletOutputStream.java:258)
        at java.io.OutputStreamWriter.close(OutputStreamWriter.java:252)
        at java.io.PrintWriter.close(PrintWriter.java:138)
        at
org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:176)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:158)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:479)

==> tomcat.log <==
Context log: path="/col" Error in jsp service() : Broken pipe
 javax.servlet.ServletException: Broken pipe
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.<init>(Throwable.java:94)
        at java.lang.Exception.<init>(Exception.java:42)
        at
javax.servlet.ServletException.<init>(ServletException.java:161)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:375)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:479)
Context log: path="/col" <b>Internal Servlet Error:</b><br>
<pre>
javax.servlet.ServletException: Broken pipe
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.<init>(Throwable.java:94)
        at java.lang.Exception.<init>(Exception.java:42)
        at
javax.servlet.ServletException.<init>(ServletException.java:161)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:375)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:479)
</pre>
<b>Root cause:</b>
<pre>
java.io.IOException: Broken pipe
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:75)
        at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAdapter.java:122)
        at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServletOutputStream.java:127)
        at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:239)
        at
org.apache.tomcat.core.ResponseImpl.flushBuffer(ResponseImpl.java:330)
        at
org.apache.tomcat.core.HttpServletResponseFacade.flushBuffer(HttpServletResponseFacade.java:235)
        at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:195)
        at
_0002fprofile_0005fsubmit_0002ejspprofile_0005fsubmit_jsp_0._jspService(_0002fprofile_0005fsubmit_0002ejspprofile_0005fsubmit_jsp_0.java:272)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:479)
</pre>

Context log: path="/col" Broken pipe /col/profile_submit.jsp

Has anyone seen or heard of this before??  I'd be happy to provide more
detail if needed.

Thanks,
Taso Lyristis

Mime
View raw message