You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by St...@savillemail.com on 2000/07/27 13:25:45 UTC
Error reading request null
Hi,
I am getting the error "Error reading request null" in the tomcat.log with
jakarta-tomcat 3.1. I have modified the source to output the exception more
clearly. Here is my complete tomcat.log from my modifed jakarta-tomcat:
===================================
Context log: path="/selfcare" Removing duplicate servlet home Wrapper(home null)
Starting endpoint port="50129"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="50130"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
about to handleError
java.lang.NullPointerException
at org.apache.tomcat.request.SimpleMapper.contextMap(SimpleMapper.java:152)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:600)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:481)
Error reading request
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:645)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:567)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:481)
=================================================================
I haven't been able to completed trace the problem but it seems to be due to the
context being null. The tomcat code ends up throwing the NullPointerException
when ctx.log(...) is called. The original problem seems to come from
SimpleMapper.contextMap which deferences a null ctx variable with ctx.getPath().
Anyone having a similar problem? Any ideas?
cheers,
Steve.
RE: Error reading request null
Posted by "Rob S." <rs...@home.com>.
Hi Steve,
> Anyone having a similar problem? Any ideas?
Plenty of people had the same problem, including myself, with 3.1.
Upgrade to 3.2 ;)
- r