java.langIllegalStateException errorsSpring Context
- Non-compatible bean instance
The reason is that during the setup, spring trying to configure the beans by invoking bean's constructor. During configuration, a number of bean post processors will be invoked on the bean, and one of them has a different type of class. Or simply trying to override the expected outcome of a class instance with new with a proxy object – since it is not of the same type as the expected object! Try to find from log which class cannot be instantiated and check that class is compatible with the expected type.
- ConfigurationClassEnhancer$BeanMethodInterceptor.intercept() has thrown an IllegalStateExceptionNo solution
|Description||Exception Type||Entry Method||Web pages|
Non-compatible bean instance
ConfigurationClassEnhancer$BeanMethodInterceptor.intercept() has thrown an IllegalStateException