Mantis - Resin
Viewing Issue Advanced Details
4305 major sometimes 11-24-10 19:24 01-10-11 13:59
ladlestein  
ferg  
urgent  
closed 3.1.6  
fixed  
none    
none 3.1.11  
0004305: RequestWrapper throws NPE
It's the same as 0003111. We're running 3.1.6, and just started using Spring' RequestContextListener class. It only throws NPEs in some of our environments.

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.updateAccessedSessionAttributes(ServletRequestAttributes.java:213)
at org.springframework.web.context.request.AbstractRequestAttributes.requestCompleted(AbstractRequestAttributes.java:49)
at org.springframework.web.context.request.RequestContextListener.requestDestroyed(RequestContextListener.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:197)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:619)

Notes
(0004896)
ferg   
01-10-11 13:59   
server/10gv