hessian访问weblogic服务报NullPoint的问题

lw9313 2010-11-02 11:23:22
配置后,客户端可以调用服务端的方法,但是在调用后服务端会有个异常:
<2010-11-2 上午11时11分53秒 CST> <Error> <Kernel> <BEA-000802> <ExecuteRequest f
ailed
java.lang.NullPointerException.
java.lang.NullPointerException
at weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStre
am.java:66)
at weblogic.utils.http.HttpChunkInputStream.skip(HttpChunkInputStream.ja
va:197)
at weblogic.utils.http.HttpChunkInputStream.skipAllChunk(HttpChunkInputS
tream.java:371)
at weblogic.servlet.internal.ServletInputStreamImpl.ensureChunkedConsume
d(ServletInputStreamImpl.java:30)
at weblogic.servlet.internal.ServletRequestImpl.skipUnreadBody(ServletRe
questImpl.java:192)

很奇怪,有遇到过这样问题的吗?
...全文
419 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
appletan 2010-12-17
  • 打赏
  • 举报
回复
<2010-12-17 上午10时11分12秒 CST> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.NullPointerException.
java.lang.NullPointerException
at jsp_servlet.__error._jspService(__error.java:95)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
Truncated. see log file for complete stacktrace
>
appletan 2010-12-17
  • 打赏
  • 举报
回复
参考这2篇文章试试?
http://wang-xiang.javaeye.com/blog/814795

http://wang-xiang.javaeye.com/blog/814791
wxhawk 2010-11-10
  • 打赏
  • 举报
回复
shit, man~~, did you close the post? who will give me the score?
wxhawk 2010-11-10
  • 打赏
  • 举报
回复
This is the service request I raised to oracle support for this issue.

hi Sean, <<<--- this guy is weblogic tech support

Attached two files for the test case.

I developed a simple web servcie using hessian and spring framework. The whole source code is zipped in the attached springhessian.zip. And the attached springhessian.war can be dployed to tomcat or weblogic.

The client caller junit class is com.spring.hessian.test.HessianTester. you can find it in springhessian.zip. The reference java library files also can be found in springhessian.war\WEB-INF\lib

There are two remote methods in the junit test class.

This is the correct output I extracted from tomcat console:
Manager----Here is the logic to change email.
DAO----Here is the logic to change email.
Manager----Here is the logic to delete account with ID = 129
DAO----Here is the logic to delete account with ID = 129

This is the output from weblogic:
Manager----Here is the logic to change email.
DAO----Here is the logic to change email.
<Nov 3, 2010 12:10:26 PM SGT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.NullPointerException.
java.lang.NullPointerException
at weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStream.java:66)
at weblogic.utils.http.HttpChunkInputStream.skip(HttpChunkInputStream.java:197)
at weblogic.utils.http.HttpChunkInputStream.skipAllChunk(HttpChunkInputStream.java:371)
at weblogic.servlet.internal.ServletInputStreamImpl.ensureChunkedConsumed(ServletInputStreamImpl.java:30)
at weblogic.servlet.internal.ServletRequestImpl.skipUnreadBody(ServletRequestImpl.java:192)
Truncated. see log file for complete stacktrace
>

You can see something is wrong after finishing the first call, then the second call hangs on.

This is the server log I found for the above exception.

####<Nov 3, 2010 12:10:26 PM SGT> <Error> <Kernel> <BP-DEV> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288757426226> <BEA-000802> <ExecuteRequest failed
java.lang.NullPointerException.
java.lang.NullPointerException
at weblogic.utils.http.HttpChunkInputStream.initChunk(HttpChunkInputStream.java:66)
at weblogic.utils.http.HttpChunkInputStream.skip(HttpChunkInputStream.java:197)
at weblogic.utils.http.HttpChunkInputStream.skipAllChunk(HttpChunkInputStream.java:371)
at weblogic.servlet.internal.ServletInputStreamImpl.ensureChunkedConsumed(ServletInputStreamImpl.java:30)
at weblogic.servlet.internal.ServletRequestImpl.skipUnreadBody(ServletRequestImpl.java:192)
at weblogic.servlet.internal.ServletRequestImpl.reset(ServletRequestImpl.java:150)
at weblogic.servlet.internal.MuxableSocketHTTP.requeue(MuxableSocketHTTP.java:204)
at weblogic.servlet.internal.VirtualConnection.requeue(VirtualConnection.java:328)
at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1493)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1415)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
wxhawk 2010-11-10
  • 打赏
  • 举报
回复
I met the same problem, please refer to http://wangxiangblog.blogspot.com/2010/10/spring-v302-learning-note-16-integrate.html

I guess the version of weblogic you are using is older than v10.3.1.

The root case is that hessian closed the activate servlet, while weblogic wants to reuse it as there is keep alive feature in weblogic.

I checked it with oracle, this is the article for oracle's reply and solution:
http://wangxiangblog.blogspot.com/2010/11/spring-v302-learning-note-16-cont.html
or switch your weblogic to v10.3.1.

GIVE ME THE SCORE!!!
lw9313 2010-11-04
  • 打赏
  • 举报
回复
。。。。。。。
lw9313 2010-11-03
  • 打赏
  • 举报
回复
顶上去。。。。
lw9313 2010-11-02
  • 打赏
  • 举报
回复
没人遇到过这个问题吗。。。。。。。。。。。。。。。。。。。

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧