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

posted @ 2015-11-12 13:09  斜杠青年  阅读(3038)  评论(0编辑  收藏  举报