dubbo+spring_maven 遇到的问题 Error creating bean with name '***': Instantiation of bean failed;

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cpUserAgent': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean

当时用的是dubbo-2.8.4.jar  jdk7 一直报错,怎么都找不到原因,最终猜测是版本问题,就换成了dubbo-2.5.3.jar 问题解决。

貌似是dubbo-2.8.4.jar 必须要在jdk8上运行吧,开发和线上都不是jdk8 所有就没有试。有待验证!

亲身经历:

dubbo-2.8.4.jar  在 jdk 1.7.0_79下可以正常运行,在jdk 1.7.0.80上运行不了,会报以上错误。

 

posted @ 2017-03-22 10:44  Bodi  阅读(8616)  评论(1编辑  收藏  举报