`
GhostWolf
  • 浏览: 311148 次
  • 性别: 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
分享到:
评论

相关推荐

    com.siyue.com.caucho.hessian_4.0.7.jar

    jar包,官方版本,自测可用

    com.caucho.hessian_3.2.0.0.jar

    jar包,官方版本,自测可用

    com.springsource.com.caucho-3.2.1.jar

    jar包,官方版本,自测可用

    com.springsource.com.caucho-sources-3.2.1.jar

    jar包,官方版本,自测可用

    spring-web-2.5.jar

    org.springframework.remoting.caucho.BurlapClientInterceptor.class org.springframework.remoting.caucho.BurlapProxyFactoryBean.class org.springframework.remoting.caucho.BurlapServiceExporter.class org....

    JSP 报错集合 经常出现的错误

    在Web开发过程中,尤其是使用Java Server Pages (JSP)技术栈时,开发者经常会遇到各种各样的错误。这些错误不仅包括编译错误、运行时错误,还有可能是由于服务器配置不当导致的问题。本文将重点介绍与JSP相关的常见...

    spring、hessian通过tomcat的简单环境应用源代码

    这可以通过`&lt;bean&gt;`标签和`&lt;hessian:service&gt;`或`&lt;bean class="org.springframework.remoting.caucho.HessianProxyFactoryBean"&gt;`来实现。 2. **Hessian服务接口**:定义一个服务接口,该接口将被客户端调用。这个...

    hessian-3.0.20-src.jar

    hessian是一个轻量级的Java Remoting方案

    resin3.1.6配置指导

    最新的resin配置指导,新人少点弯路,下了就知道了 Main class: com.caucho.server.resion.Resin 这里多写了一个o 正确的是: Main class: com.caucho.server.resin.Resin

    resin-3.1.9-src

    例如,`com.caucho.server.webapp.WebApp`类是Web应用的核心,负责加载和管理Servlet实例。 2.2 JNDI服务 Resin提供了JNDI(Java Naming and Directory Interface)服务,允许开发者在应用程序中查找和绑定资源。在...

    eclipse resin配置

    可以从官方网站(https://www.caucho.com/resin/download/)获取最新版本的Resin。按照官方文档进行安装,确保安装路径中不含空格。 ##### 3. 配置Resin启动脚本 在给定的部分内容中,“VMP ...

    Eclipse配置Resin说明

    - Resin服务器版本:3.0.26,可从官方网站[http://www.caucho.com/download/index.xtp](http://www.caucho.com/download/index.xtp)下载 - JDK版本:1.5.0_10 或更高版本 #### 步骤详解 1. **创建项目** 首先,...

    用spirng和hessian构建分布式应用(远程接口)的方法

    &lt;servlet-class&gt;com.caucho.hessian.server.HessianServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1 &lt;param-name&gt;service-class &lt;param-value&gt;whao.test.hessian.server.impl.MyServiceImpl &lt;servlet-name&gt;...

    hessian-4.0.63-API文档-中英对照版.zip

    Maven坐标:com.caucho:hessian:4.0.63; 标签:hessian、caucho、jar包、java、中英对照文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和...

    spring-framework-3.0.5.RELEASE-dependencies-1

    com.caucho com.google.jarjar com.h2database com.ibm.websphere com.jamonapi com.lowagie.text com.mchange.c3p0 com.opensymphony.quartz com.oracle.toplink.essentials com.springsource.bundlor ...

    hessian-4.0.63-API文档-中文版.zip

    Maven坐标:com.caucho:hessian:4.0.63; 标签:hessian、caucho、jar包、java、中文文档; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构...

    Hessian实战应用之获取客户端请求URL和重新转发客户端请求

    import com.caucho.hessian.server.HessianServlet; import javax.servlet.http.HttpServletRequest; public class MyHessianServlet extends HessianServlet { @Override public void service...

    quercus-4.0.39.war

    官方地址http://quercus.caucho.com/

    hessian-4.0.51-src

    3. **服务端实现**:服务端的核心类位于"**com.caucho.hessian.server**"包中,如`HessianServlet`,它继承自Servlet,可以将Hessian服务部署到任何支持Servlet的Web服务器上,如Tomcat。当接收到HTTP请求时,`...

    spring-framework-3.0.5.RELEASE-dependencies-6

    com.caucho com.google.jarjar com.h2database com.ibm.websphere com.jamonapi com.lowagie.text com.mchange.c3p0 com.opensymphony.quartz com.oracle.toplink.essentials com.springsource.bundlor ...

Global site tag (gtag.js) - Google Analytics