com.caucho.hessian.io.HessianProtocolException: is unknown code 解决方案

问题:

 Cannot access Hessian remote service at [http://....../remote/syllabusService];

nested exception is com.caucho.hessian.io.HessianProtocolException: '?' is an unknown code

解决方法是启用重载,如下:

 
HessianProxyFactory factory = new HessianProxyFactory(); 

factory.setOverloadEnabled(true); 

如果使用了spring配置文件在客户端调用的配置文件applicationContext-hessian-client.xml中加入如下属性:

<property name="overloadEnabled" value="true" />

原文地址:https://www.cnblogs.com/chenandy/p/4958680.html