Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002883 [Resin] minor always 08-29-08 13:31 09-19-08 14:09
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 3.2.0
  Product Build
Summary 0002883: NPE in RequestWrapper
Description 2) on the same app-fuse based apps mentioned in the preview e-mail i get another error:

{http--8080-2} java.lang.NullPointerException
 {http--8080-2} at com.caucho.server.connection.
RequestWrapper.isSecure(RequestWrapper.java:292)
 {http--8080-2} at com.caucho.server.connection.RequestAdapter.getCookieName(RequestAdapter.java:463)
 {http--8080-2} at com.caucho.server.connection.RequestAdapter.getSession(RequestAdapter.java:387)
 {http--8080-2} at com.caucho.server.webapp.DispatchRequest.getSession(DispatchRequest.java:448)
 {http--8080-2} at org.springframework.web.context.request.ServletRequestAttributes.getSession(ServletRequestAttributes.java:93)
 {http--8080-2} at org.springframework.web.context.request.ServletRequestAttributes.updateAccessedSessionAttributes(ServletRequestAttributes.java:210)
 {http--8080-2} at org.springframework.web.context.request.AbstractRequestAttributes.requestCompleted(AbstractRequestAttributes.java:47)
 {http--8080-2} at org.springframework.web.context.request.RequestContextListener.requestDestroyed(RequestContextListener.java:86)
 {http--8080-2} at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:197)
 {http--8080-2} at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
 {http--8080-2} at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:280)
 {http--8080-2} at com.caucho.server.port.TcpConnection.handleConnection(TcpConnection.java:563)
 {http--8080-2} at com.caucho.server.port.TcpConnection$AcceptTask.doAccept(TcpConnection.java:1122)
 {http--8080-2} at com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1069)
 {http--8080-2} at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759)
 {http--8080-2} at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681)
 {http--8080-2} at java.lang.Thread.run(Thread.java:595)

no error on apache tomcat. we think it is a resin incompatibility because the exception is launchet by spring framework...
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003388)
ferg
09-04-08 14:48

The stack trace is strange. The request object is an include/forward request (DispatchRequest), but the stack trace doesn't show any include or forward.

Although it might be a Resin bug, the spring framework is using an old or obsolete request object, which may also be a spring bug.
 
(0003469)
ferg
09-19-08 14:09

From emailed details, this looks like an application error. The request is getting assigned to a ThreadLocal and apparently not getting cleared. Since Resin reuses its include request wrappers, the obsolete request is in an undefined state.
 

- Issue History
Date Modified Username Field Change
08-29-08 13:31 alex New Issue
09-04-08 14:48 ferg Note Added: 0003388
09-19-08 14:09 ferg Note Added: 0003469
09-19-08 14:09 ferg Assigned To  => ferg
09-19-08 14:09 ferg Status new => closed
09-19-08 14:09 ferg Resolution open => no change required


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