Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3111 | major | always | 12-01-08 22:02 | 08-13-09 17:52 | |
|
|||||
Reporter: | tempestse | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.7 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.2 | ||
|
|||||
Summary: | 0003111: RequestWrapper throws NPE | ||||
Description: |
A call to getSession() results in a NPE thrown from com.caucho.server.connection.RequestWrapper.isSecure This issue has already been reported as 0002883 but was closed based on an assumption that the NPE was caused by application error. I am able to reproduce by simply submitting a request that should return a 404. As the Request is torn down, RequestWrapper is invoked and triggers the NPE. Identical requests running on Jetty and running on Tomcat are handled without any error. At a minimum, I need this patched to throw a meaningful non-runtime Exception. Ideally, Resin would exhibit the same expected behavior as Tomcat and Jetty. My trace is pasted below: |
||||
Steps To Reproduce: | |||||
Additional Information: |
java.lang.NullPointerException at com.caucho.server.connection.RequestWrapper.isSecure(RequestWrapper.java:296) at com.caucho.server.connection.RequestAdapter.getCookieName(RequestAdapter.java:463) at com.caucho.server.connection.RequestAdapter.getSession(RequestAdapter.java:387) at com.caucho.server.webapp.DispatchRequest.getSession(DispatchRequest.java:448) at org.springframework.web.context.request.ServletRequestAttributes.getSession(ServletRequestAttributes.java:87) at org.springframework.web.context.request.ServletRequestAttributes.updateAccessedSessionAttributes(ServletRequestAttributes.java:221) at org.springframework.web.context.request.AbstractRequestAttributes.requestCompleted(AbstractRequestAttributes.java:47) at org.springframework.web.context.request.RequestContextListener.requestDestroyed(RequestContextListener.java:87) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:102) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:192) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:494) at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:358) at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:1008) at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:943) at com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(ApplyDecoratorTag.java:256) at _jsp._404__jsp._jspService(_404__jsp.java:152) at com.caucho.jsp.JavaPage.service(JavaPage.java:61) at com.caucho.jsp.Page.pageservice(Page.java:578) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195) at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:283) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:115) at com.caucho.server.webapp.ErrorPageManager.handleErrorStatus(ErrorPageManager.java:610) at com.caucho.server.webapp.ErrorPageManager.sendError(ErrorPageManager.java:493) at com.caucho.server.connection.AbstractHttpResponse.sendError(AbstractHttpResponse.java:523) at com.caucho.server.connection.AbstractHttpResponse.sendError(AbstractHttpResponse.java:477) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:99) at org.springframework.security.context.HttpSessionContextIntegrationFilter$OnRedirectUpdateSessionResponseWrapper.sendError(HttpSessionContextIntegrationFilter.java:489) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:99) at net.sf.ehcache.constructs.web.GenericResponseWrapper.sendError(GenericResponseWrapper.java:105) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:99) at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:99) at com.opensymphony.module.sitemesh.filter.PageResponseWrapper.sendError(PageResponseWrapper.java:175) at org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1071) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:856) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|