HessianConnectionException: (HTTP) 500 error when using Hessian 4.0.7 & Spring 3.1.1

99封情书 提交于 2019-12-05 18:47:58

The issue was that I had a spring-remoting 2.0.8 lib included and this was conflicting (silently) somewhere. Removing this immediately resolved the issue for me.

Just to be explicit the above config and test code works perfectly when I have the following libs (note I assume not all of them are required for Hessian/Spring solution, they are in my project for other uses but I've listed here for completeness);

spring-core-3.1.1.RELEASE
spring-asm-3.1.1.RELEASE
spring-web-3.1.1.RELEASE
spring-beans-3.1.1.RELEASE
spring-context-3.1.1.RELEASE
spring-aop-3.1.1.RELEASE
spring-webmvc-3.1.1.RELEASE
spring-context-support-3.1.1.RELEASE
spring-expression-3.1.1.RELEASE
hessian-4.0.7

My solution (after trying various versions of Hessian) was to use:

org.springframework spring-remoting 2.0.8
org.springframework spring-webmvc/orm/(whatever) 3.1.1.RELEASE
com.caucho hessian 3.0.8

I am using these in a maven project, so these are the exact versions I am using, and the problem disappeared. It definitely seems to be a version thing with Spring 3.1.1.

For what it's worth, I'm using this with an Eclipse RCP application, and it works with the Eclipse RCP Hessian bundle.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!