2015-12-23 35 views
2

我從2.4.5將grails版本升級到2.5.0。而運行我的項目是已發生的問題 -如何在將grails版本從2.4.5升級到2.5.0時解決BeanCreationException ploblem?

Error initializing the application: Error creating bean with name 'com.athena.mis.application.model.ListSupplierActionServiceModelValidator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator.setProxyHandler(org.codehaus.groovy.grails.support.proxy.ProxyHandler); nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$100(Lorg/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor;)Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.athena.mis.application.model.ListSupplierActionServiceModelValidator': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator.setProxyHandler(org.codehaus.groovy.grails.support.proxy.ProxyHandler); nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.access$100(Lorg/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor;)Lorg/springframework/beans/factory/config/ConfigurableListableBeanFactory;

ListSupplierActionServiceModel是在我的項目Groovy類,它的緩存使用是隻讀的。

回答

5

我有不少很難固定這樣的產品......

只需刪除該目錄.slcache在Grails項目的根文件夾,你就大功告成了!

相關問題