Question

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.

Was it helpful?

Solution

I rebuilt and restarted IntelliJ, and all was well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top