Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005273 [Resin] minor always 11-14-12 06:05 01-18-13 10:15
Reporter cowan View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.32
Summary 0005273: NPE from PageContextImpl.initialize with custom ServletResponse object
Description We are implementing a POST-Redirect-GET pattern into our system. We are trying to execute the POST context, save the response in an internal object, redirect the user to a page via GET, and then serve the POST results to the user from the GET page.

To try to make this pattern, we replace the ServletResponse with a Proxy object and captured all of the method calls and data being written to the OutputStream / Writer. Unfortunately, I started seeing NullPointerExceptions from within Resin itself (Resin 4.0.32 GPL):

java.lang.NullPointerException
        at com.caucho.jsp.PageContextImpl.initialize(PageContextImpl.java:258)
        at com.caucho.jsp.PageManager.allocatePageContext(PageManager.java:206)
        at _jsp._templates._jsp.__0style2._error__jsp._jspService(_error__jsp.java:24)
        at com.caucho.jsp.JavaPage.service(JavaPage.java:64)
        at com.caucho.jsp.Page.pageservice(Page.java:548)
        at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:194)
        at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:131)
        at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:289)
        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:298)
        at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:116)
Additional Information Rep by B. Loy
Attached Files

- Relationships

- Notes
(0006165)
ferg
01-18-13 10:15

jsp/0622
 

- Issue History
Date Modified Username Field Change
11-14-12 06:05 cowan New Issue
01-18-13 10:15 ferg Note Added: 0006165
01-18-13 10:15 ferg Assigned To  => ferg
01-18-13 10:15 ferg Status new => closed
01-18-13 10:15 ferg Resolution open => fixed
01-18-13 10:15 ferg Fixed in Version  => 4.0.34


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