启动dubbo报错解决:java.lang.RuntimeException: java.io.IOException: invalid constant type: 15
2017-08-05 21:11
1241 查看
dubbo-2.8.4
JDK-1.8
启动时报错:
折腾了很久,查阅博客说是jdk版本不对,修改成了jdk1.6、jdk1.7仍然还是报错。
最终解决:
是因为dubbo调用的
原帖:
然后启动出现新的异常:
测试发现zookeeper服务器已启动,可以使用zkCli.sh访问服务器,但这里却无法连接。
原因版本冲突,将引用的
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,启动不再报错。
相关文章推荐
- 升级jdk8后系统报错解决:java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
- 升级jdk8后系统报错解决:java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
- java.lang.RuntimeException: java.io.IOException: invalid constant type: 15
- java.lang.RuntimeException: java.io.IOException: invalid constant type: 15
- java.lang.RuntimeException: java.io.IOException: invalid constant type: 15
- 大数据开发中遇到的错误 java.lang.RuntimeException: java.io.IOException: invalid constant type: 18
- 异常解决java.io.IOException: invalid constant type: 15
- 异常解决java.io.IOException: invalid constant type: 15
- 异常解决java.io.IOException: invalid constant type: 15
- 使用Dubbo服务出现java.io.IOException: invalid constant type: 18异常解决办法
- alibaba.dubbo-java.io.IOException: invalid constant type: 15
- 调用dubbo服务提示:java.io.IOException: invalid constant type: 18
- java.io.IOException: invalid constant type: 15
- 运行报错:java.io.IOException: invalid constant type: 15
- POI导出文件报错 java.lang.RuntimeException: java.io.IOException: 系统找不到指定的路径。
- java.io.StreamCorruptedException: invalid type code: AC解决办法
- java.io.StreamCorruptedException: invalid type code: AC问题解决
- Tomcat:IOException while loading persisted sessions: java.io.EOFException解决Tomcat启动异常
- java.io.StreamCorruptedException: invalid type code: AC错误的解决方法
- 启动MyEclipse 出现java.lang.RuntimeException: No application id has been found 解决办法