tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19590] New: - NullPointerException thrown from CoyoteResponseFacade.isCommitted
Date Fri, 02 May 2003 13:08:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19590

NullPointerException thrown from CoyoteResponseFacade.isCommitted

           Summary: NullPointerException thrown from
                    CoyoteResponseFacade.isCommitted
           Product: Tomcat 4
           Version: 4.1.18
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: steve_2000g@yahoo.co.uk


When calling addHeader, setCookie or setContentType this exception is thrown. A
NullPointerException is also thrown when I tried using version 4.0.6 - this
makes me thinks I'm doing something wrong, but I thought I'd report it anyway.

I'm trying to write a Tunnel/Proxy and one implementation is a HTTP Proxy using
the service(HSReq, HSRes) method on HttpServlet. In that I kick of two relay
threads - a (client input ala reconstructing the HTTP request/proxy socket
output) and another (proxy socket input/client output with a little header
parsing). During the header parsing and adding the parsed headers to the
HttpServletResponse is where it all goes horribly wrong.

The stacktrace is pasted below:
java.lang.NullPointerException
	at
org.apache.coyote.tomcat4.CoyoteResponseFacade.isCommitted(CoyoteResponseFacade.java:244)
	at
org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseFacade.java:382)
	at aiu.dubrtc.tunnel.io.HttpCheckPoint.addHeadersToRes(HttpCheckPoint.java:117)
	at aiu.dubrtc.tunnel.io.HttpCheckPoint.commit(HttpCheckPoint.java:61)
	at aiu.dubrtc.tunnel.Relay.run(Relay.java:108)

I'm about to get the Tomcat source and dig around and see if I can figure out
what is causing it. If I do I'm append it to the Buziller bug report.

Cheers,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message