0

无论出于何种原因,当我尝试运行任何集成测试时,都会得到以下信息:

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 Ultimate 10.01 运行测试。

4

1 回答 1

0

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

于 2011-02-02T06:55:57.133 回答