解决hessian com.caucho.hessian.io.hessianprotocolexception 异常

来源:互联网 发布:软件测试中软件的定义 编辑:程序博客网 时间:2024/05/19 06:39

现象

项目中使用到hessian,调用到hessian服务端的含有重载方法的接口出现了如下错误:
com.caucho.hessian.io.HessianProtocolException: is unknown code expected end of call (‘z’) at 0x4d (M). Check method arguments and ensure method overloading is enabled if necessary

解决办法

在客户端spring中配置

<bean id="xxx"class="org.springframework.remoting.caucho.HessianProxyFactoryBean">  <property name="serviceUrl"value=""/>  <property name="serviceInterface"value=""/>  <property name="overloadEnabled"value="true"/> </bean>
0 1