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

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.jarJDK版本冲突,将引用的包改为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,启动不再报错。

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值