问题:

 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" />

相关文章: