HessianProtocolException: '' is an unknown code问题解决
来源:互联网 发布:程序员和设计师 编辑:程序博客网 时间:2024/06/04 17:56
问题:
在使用Hessian从客户端调用远程的服务时,发生 HessianProtocolException: '' is an unknown code异常。客户端和远程服务采用了不同的编译环境,但maven文件一致。如果将客户端编译的jar包放在服务器上,替换在服务器编译的jar包,则该问题也可以解决(需要替换接口包,接口实现包,甚至相关的引用包,也就是说至少要替换3个包才可以)。但这样做,对于开发测试非常不便,只能在客户端编译。服务端的自动编译使用不上。有没有其他更好的解决方式呢?
解决:
经查资料,通过设置:
factory.setOverloadEnabled(true);
问题解决。也就是在HessianProxyFactory工厂初始化后设置该值:
HessianProxyFactory factory = new HessianProxyFactory();
具体原因待查。
感谢这位兄弟提供的解决方案:
http://blog.csdn.net/java_min/article/details/11918503
阅读全文
0 0
- HessianProtocolException: '' is an unknown code问题解决
- '<' is an unknown code
- com.caucho.hessian.io.HessianProtocolException: is unknown code 解决方案
- HessianProtocolException
- Hessian/Burlap: is an unknown class in WebappClassLoader
- -server 'default' is an unknown server in the configuration file.
- javax.el.PropertyNotFoundException: 'newsLine' is an unknown bean property...
- sysctl -p 报错 is an unknown key
- 使用UIImagePickerController导致[Generic] Creating an image format with an unknown type is an error
- nested exception is org.hibernate.MappingException: Unknown entity,问题解决
- class is not mapped 和 Unknown entity问题解决
- WebDriverException: unknown error: Element is not clickable at 问题解决
- Which is better, a return code or an exception?
- references an unknown entity
- linux sysctl -p 报error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
- linux sysctl -p 报error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
- linux sysctl -p 报error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
- linux sysctl -p 报error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
- HTML5介绍
- React性能优化——代码篇
- centos7下配置nginx+php+mysql
- Longest Word in Dictionary through Deleting问题及解法
- Linux下线程pid和tid
- HessianProtocolException: '' is an unknown code问题解决
- HTML编辑器kindeditor.js开头老是省略空格键
- php中浮点数相关处理(待完善)
- IO流概念
- Java一些基础知识
- 编写可移植C/C++程序的要点
- c#中怎么获得当前路径
- android 异常处理详解
- CardView详解