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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值