Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001971 [Resin] major always 08-24-07 10:39 08-27-07 15:47
Reporter karl View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0001971: NPE in AbstractHttpResponse.writeHeaders
Description Steps to reproduce:

1) create a JSP p.jsp like so:

<jsp:include page="q.jsp"/>

2) create a JSP q.jsp like so:

<%
  if (true) { throw new NullPointerException(); }
%>

3) request p.jsp

4) expected result:

java.lang.NullPointerException
    at _jsp._root._default_22dhost._q__jsp._jspService(root/default-host/q.jsp:2)
...

5) actual result:

java.lang.NullPointerException
    at com.caucho.server.connection.AbstractHttpResponse.writeHeaders(AbstractHttpResponse.java:1633)
    at com.caucho.server.connection.IncludeResponseStream.writeNext(IncludeResponseStream.java:234)
    at com.caucho.server.connection.ToByteResponseStream.flushByteBuffer(ToByteResponseStream.java:520)
    at com.caucho.server.connection.ToByteResponseStream.flushBuffer(ToByteResponseStream.java:426)
    at com.caucho.server.connection.IncludeResponseStream.finish(IncludeResponseStream.java:291)
    at com.caucho.server.connection.AbstractHttpResponse.finish(AbstractHttpResponse.java:2042)
    at com.caucho.server.connection.AbstractHttpResponse.finish(AbstractHttpResponse.java:2004)
    at com.caucho.server.webapp.NamedDispatcherImpl.include(NamedDispatcherImpl.java:89)

on line 1633, it appears that _originalRequest is null.
Additional Information
Attached Files

- Relationships

- Notes
(0002232)
karl
08-24-07 10:40

This makes it very difficult to debug exceptions in JSP includes because the underlying cause is always masked by the NPE in AbstractHttpResponse.
 
(0002235)
karl
08-24-07 17:05

This issue occurs in 3.1.2
 

- Issue History
Date Modified Username Field Change
08-24-07 10:39 karl New Issue
08-24-07 10:40 karl Note Added: 0002232
08-24-07 17:05 karl Note Added: 0002235
08-27-07 15:47 ferg Assigned To  => ferg
08-27-07 15:47 ferg Status new => closed
08-27-07 15:47 ferg Resolution open => fixed
08-27-07 15:47 ferg Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker