Mantis - Resin
Viewing Issue Advanced Details
4409 minor always 02-25-11 10:18 03-01-11 16:55
ferg  
ferg  
normal  
closed 4.0.13  
fixed  
none    
none 4.0.15  
0004409: NPE with wrapped request in JSP/PageContext
(rep by tienus)

With the following code:

MockHttpServletResponse mockresponse = new MockHttpServletResponse();
mockresponse.setContentType("text/html"
mockresponse.setBufferSize(16384);
RequestDispatcher dispatcher =
servletContext.getRequestDispatcher(fileName);
dispatcher.forward(mockrequest, mockresponse);

I'm seeing the following error:

java.lang.NullPointerException
at com.caucho.jsp.PageContextImpl.initialize(PageCont extImpl.java:252)
at com.caucho.jsp.PageManager.allocatePageContext(Pag eManager.java:208)
at _jsp._WEB_22dINF._jsp._email._dealerInvoiceEmailUp dateForOutstandingInvoicesGreaterThanTwentyFiveDay s__jspx._jspService(_dealerInvoiceEmailUpdateForOu tstandingInvoicesGreaterThanTwentyFiveDays__jspx.j ava:23)
at com.caucho.jsp.JavaPage.service(JavaPage.java:64)
at com.caucho.jsp.Page.pageservice(Page.java:542)
at com.caucho.server.dispatch.PageFilterChain.doFilte r(PageFilterChain.java:194)
at com.caucho.server.dispatch.ServletInvocation.servi ce(ServletInvocation.java:287)
at com.caucho.server.webapp.RequestDispatcherImpl.for ward(RequestDispatcherImpl.java:270)
at com.caucho.server.webapp.RequestDispatcherImpl.for ward(RequestDispatcherImpl.java:100)

We are using Using Resin 4.0.13.


Notes
(0005094)
ferg   
03-01-11 16:55   
jsp/0620