tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bradley Williams <bwilli...@clientsoft.com>
Subject Tomcat 3.2.1 Socket hung on read
Date Tue, 17 Apr 2001 18:43:57 GMT
Thread hung on a read,  never returns or closes the socket.  Only
reproducible
on m-processor machine.  

Tried Sun jdk1.3 and IBMjdk1.3.   problem always occurs
Tried Xerces and Crimson parsers. problem always occurs

Can someone shed some light on what this problem might be...

I have attached the sample program to reproduce. 

<<<<error reported at the console>>>>
ContextManager: Error reading request, ignored
java.lang.NullPointerException
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:191)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

<<<<tdump of the thread>>>>>

"Thread-28" prio=5 tid=0x7d21b0 nid=0x9d8 runnable [0x9aaf000..0x9aafdc4]
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:86)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:225)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
        at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.
java:119)
        at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInpu
tStream.java:111)
        at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputS
tream.java:144)
        at
org.apache.xerces.utils.ChunkyByteArray.fill(ChunkyByteArray.java:222)
        at
org.apache.xerces.utils.ChunkyByteArray.<init>(ChunkyByteArray.java:98)
        at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac
tory.java:153)
        at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:491)
        at
org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:309)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:951)
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:17
2)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:119)
        at
com.clientsoft.webpack.util.TestServlet.service(TestServlet.java:52)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

                           ((
Bradley G. Williams         ))
Senior Software Engineer |_____|_
Clientsoft Inc.          |     | )
8323 NW 12 St. Suite 216 |     |'
Miami, FL 33126          |_____|
Office: 305.716.1007 ext: 115
Fax: 305.716.0133
 


Mime
View raw message