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

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.

时间: 2024-08-06 03:41:01

com.caucho.hessian.io.HessianProtocolException: expected string at 0x6d的相关文章

使用System.IO.Combine(string path1, string path2, string path3)四个参数的重载函数提示`System.IO.Path.Combine(string, string, string, string)' is inaccessible due to its protection level

今天用Unity5.5.1开发提取Assets目录的模块,使用时采用System.IO.Path.Combine(string, string, string, string)函数进行路径生成 明明是公有函数,为何会报错,奇了怪了 有谁知道什么原因?欢迎交流 ....... ... 重新打开了一下 ,可以了.版本原因 使用System.IO.Combine(string path1, string path2, string path3)四个参数的重载函数提示`System.IO.Path.Co

关于Python json解析过程遇到的TypeError: expected string or buffer

关于Python json解析过程遇到的问题:(爬取天气json数据所遇到的问题http://tianqi.2345.com/) part.1 url--http://tianqi.2345.com/t/wea_history/js/201708/60061_201708.js 返回的数据如下: 这就尴尬了,直接json.loads是返回错误的. 对比了其他网页返回的--http://www.toutiao.com/search_content/?offset=0&format=json&

ord() expected string of length 1, but int found

源代码是这样: s=b'^SdVkT#S ]`Y\\!^)\x8f\x80ism' key='' for i in s:     i=ord(i)-16     key+=chr(i^32) print (key) 运行后出现了问题:ord() expected string of length 1, but int found 之所以出现这个问题,是在字符串转换过程中出现了一个小错误,在一系列百度和谷歌后,发现概念还是很迷糊,但是在曙光大佬的解答后,明白了怎么处理,就是在s后加"",

Invalid prop: type check failed for prop "XXX". Expected String, got Object.

项目是Vue的,基于elementUI的后台管理系统. Invalid prop: type check failed for prop "total". Expected String, got Object. 昨天遇到了这么个错误,找了半天,网上也找了很久的资料,有很多跟我遇到的问题类似的有很多,但解决办法形似各样,没有我这种情况的,但还好经过我的不懈努力还是找到了原因. total的类型出错了,应该是传入的类型与组件需要的类型不同 原文地址:https://www.cnblogs

TypeError at /admin/booktest/bookinfo/ expected string or buffer

问题描述: Request Method: GETRequest URL: http://127.0.0.1:8000/admin/booktest/bookinfo/Django Version: 1.8.2Exception Type: TypeErrorException Value: expected string or bufferException Location: /home/python/.virtualenvs/h1/local/lib/python2.7/site-pack

IO相关3(string流)

sstream 头文件定义了三个类型来支持内存 IO,这些类型可以向 string 写入数据,从 string 读取数据,就像 string 是一个 IO 流一样. istringstream 从 string 读取数据,ostringstream 向 string 写入数据,stringstream 既可以从 string 读取数据也可以向 string 写入数据.类似于 fstream,sstream 中定义的类型也都是继承自 iostream 中的类型.除了继承来的操作,sstream 中

IO流的String和Byte的相互转化

在Java中IO输入流通常读入的是String,但是在字节流中的传递的始终是用字节,Byte 于是就会用到Byte和String的相互转化 // String2Byte byte[] c = str.getBytes(); //Byte2StringString value = new String(byte1,0,ins);System.out.println(value); public class Demo2 { public static void main(String[] args)

[Python]json对象转换出错expected string or buffer python

[问题] 今天在使用python中的json转换碰到一个问题: [代码] comments.json { "count":"2", "page":"1", "comments":[ { "content":"helloworld", "user":{ "id":"0001", "name"

【caffe】Error parsing text-format NetParameter: ****:**:Expected string.

错误描述: prototxt中第****行,第**列缺少一个整型数或者标识符. 解决方法: 检查对应的prototxt文件,第****行,第**列是否遗漏相关信息. 我的文件是在代码新旧版本没对应好~ layer { type: "Accuracy" } layers{ type: ACCURACY }