您的位置:首页 > 编程语言 > Java开发

启动dubbo报错解决:java.lang.RuntimeException: java.io.IOException: invalid constant type: 15

2017-08-05 21:11 1241 查看
dubbo-2.8.4

JDK-1.8

启动时报错:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserService': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: java.io.IOException: invalid constant type: 15


Caused by: java.lang.RuntimeException: java.io.IOException: invalid constant type: 15


折腾了很久,查阅博客说是jdk版本不对,修改成了jdk1.6、jdk1.7仍然还是报错。

最终解决:

是因为dubbo调用的
javassist-3.15.0-GA.jar
JDK
版本冲突,将引用的包改为
javassist-3.18.0-GA
,成功解决。

原帖:
http://www.xwood.net/_site_domain_/_root/5870/5874/t_c258488.html


然后启动出现新的异常:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserService' defined in file [D:\WorkSpace\MATHVER\dc-sys-service\target\classes\dc\sys\service\SysUserService.class]: Initialization of bean failed; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000


测试发现zookeeper服务器已启动,可以使用zkCli.sh访问服务器,但这里却无法连接。

原因版本冲突,将引用的
zookeeper-3.4.5.jar
换成
zookeeper-3.4.6
,启动不再报错。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  dubbo exception java javaee
相关文章推荐