2011-02-02 46 views
0

无论出于何种原因,当我尝试运行任何集成测试,我发现了以下内容:集成测试失败 - 自动装配问题使用Grails

Initialization of bean failed; nested exception is 
org.springframework.beans.ConversionNotSupportedException: Failed to convert property  
value of type  
'myproject.provider.shipping.variable.ConcreteImplService$$EnhancerByCGLIB$$f28ea3b8' to 
required type 'ammoscanner.provider.shipping.variable.ConcreteImplService' for property 
'concreteImplService'; nested exception is java.lang.IllegalStateException: Cannot 
convert value of type 

为什么CGLIB包我的注入类和造成测试失败?我正在运行grails 1.3.6并通过Intelli-J终极版10.01运行测试。

+0

在run-app或war中运行相同的代码时它工作吗?另外,你在你的应用中使用哪些插件? – 2011-02-02 05:24:03

+1

也尝试从命令行运行以消除IntelliJ作为变量。 – 2011-02-02 05:24:47

回答

0

我重建并重新启动IntelliJ,一切都很好。