Integration tests fail - autowiring issue with Grails

483 Views Asked by At

For whatever reason, when I try to run any integration test, I'm getting the following:

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

Why is CGLib wrapping my injected classes and causing tests to fail? I'm running grails 1.3.6 and running tests through Intelli-J ultimate 10.01.

1

There are 1 best solutions below

0
On BEST ANSWER

I rebuilt and restarted IntelliJ, and all was well.