`
GhostWolf
  • 浏览: 312305 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

com.caucho.server.connection.RequestWrapper.isSecure NullPointerException

阅读更多
今天搭个系统,用resin3启动,发现访问页面的时候一直报下面这个错误:

[2010/12/23 09:03:49.359] java.lang.NullPointerException
[2010/12/23 09:03:49.359] 	at com.caucho.server.connection.RequestWrapper.isSecure(RequestWrapper.java:296)
[2010/12/23 09:03:49.359] 	at com.caucho.server.connection.RequestAdapter.getCookieName(RequestAdapter.java:463)
[2010/12/23 09:03:49.359] 	at com.caucho.server.connection.RequestAdapter.getSession(RequestAdapter.java:387)
[2010/12/23 09:03:49.359] 	at com.caucho.server.webapp.DispatchRequest.getSession(DispatchRequest.java:448)
[2010/12/23 09:03:49.359] 	at org.springframework.web.context.request.ServletRequestAttributes.updateAccessedSessionAttributes(ServletRequestAttributes.java:222)
[2010/12/23 09:03:49.359] 	at org.springframework.web.context.request.AbstractRequestAttributes.requestCompleted(AbstractRequestAttributes.java:48)
[2010/12/23 09:03:49.359] 	at org.springframework.web.context.request.RequestContextListener.requestDestroyed(RequestContextListener.java:87)
[2010/12/23 09:03:49.359] 	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:197)
[2010/12/23 09:03:49.359] 	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
[2010/12/23 09:03:49.359] 	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
[2010/12/23 09:03:49.359] 	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
[2010/12/23 09:03:49.359] 	at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743)
[2010/12/23 09:03:49.359] 	at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662)
[2010/12/23 09:03:49.359] 	at java.lang.Thread.run(Thread.java:619)



查了一下有个人这么说的
<!-- action交由Spring管理 scope=session即一个请求产生一个新的action实例
使用listener形式报错!原因可能是resin3不支持或达不到sevlet version2.4规范
-->  

但是不知道是不是真的,没时间验证,再查了一个帖子说在tomcat下面没问题,果真我换回tomcat6,还真的运行正常了,哇靠,神马。。。。。。。。。。。。。
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:


以后有时间再慢慢研究了

参考链接:
http://bugs.caucho.com/view.php?id=3111
http://topic.csdn.net/u/20100816/16/2AFEA3FB-54F3-4374-A565-9CAC3BF064C2.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics