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
,启动不再报错。