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上運行不了,會報以上錯誤。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM