spring明明没有循环引用的,为什么总报这个错?

09-03-30 xyz
明明没有循环引用的,为什么总报这个错?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MeterHouseService' defined in ServletContext resource [/WEB-INF/classes/com/centit/jlwr/webservice/webservice-xfire.xml]: Cannot create inner bean 'com.centit.jlwr.webservice.impl.MeterHouseServiceImpl#142f703' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterBackManager' defined in class path resource [com/centit/jlwr/wmh/service/applicationContext-wmh.xml]: Cannot resolve reference to bean 'meterOutMgr' while setting bean property 'meterOutMgr'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterOutMgr': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean not fully initialized yet (maybe due to circular bean reference)
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterBackManager' defined in class path resource [com/centit/jlwr/wmh/service/applicationContext-wmh.xml]: Cannot resolve reference to bean 'meterOutMgr' while setting bean property 'meterOutMgr'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterOutMgr': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean not fully initialized yet (maybe due to circular bean reference)
Caused by: 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'meterOutMgr': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean not fully initialized yet (maybe due to circular bean reference)
Caused by: 
org.springframework.beans.factory.FactoryBeanNotInitializedException: FactoryBean not fully initialized yet (maybe due to circular bean reference)

freebox
2009-03-31 12:15
这我也不知道是咋回事,提示可能有就是可能有也可能没有,也可能更深度的依赖里存在闭合环。建议单独考查meterOutMgr对应bean的状况,去除所有关于它的依赖看能否独立被spring初始化,另外建议考查jar是否多版本共存,反正我这里有多版本情况就有问题。我现在发现即使我在用maven也无法有效地解决依赖关系,java在这方面实在太差,后来我也不配置依赖去除了,直接在最后ant删除多出来的文件。

猜你喜欢