首页 > 其他 > 详细

com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d

时间:2016-05-21 11:20:44      阅读:1813      评论:0      收藏:0      [点我收藏+]

    1. 现象

在学习Hessian时,A系统通过hessian去调用B,但收到500错误:

java.io.IOException: Server returned HTTP response code: 500 for URL

调试B,看到标题所述异常。

 

     2. 分析

经过搜索,看到这样的信息:

“是hessian和spring的版本不兼容引起的”  http://itlab.idcquan.com/Java/base/849773_4.html

 

      3. 原因

经过分析发现,B所使用的hessian是spring-remoting 2.0实现的,所使用的类是org.springframework.remoting.caucho.HessianServiceExporter,而从2.5开始,spring-remoting的内容被拆分到spring-webmvc或spring-web中。

A所使用的是spring-web 4.2.1.final,所使用的类是org.springframework.remoting.caucho.HessianProxyFactoryBean

 

     4. 解决办法

在B中放弃使用spring-remoting 2.0, 而是使用spring-web 4.2.1.final.

com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d

原文:http://www.cnblogs.com/tanjinfu/p/5514214.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!