We are currently using Spring 3.2.8-RELEASE, heavily relying on @Autowired annotations in our code. Whilst starting the application we are getting the following error:
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'XXXXX': Bean with name 'XXXXX' has been injected into other beans [XXXXX,XXXXX] in its raw version as part of a circular reference, but has eventually
been wrapped. This means that said other beans do not use the final version of the bean.
This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
1) We do not have any circular reference in bean dependencies.
2) The system works on all development machines (mix of Windows and Linux machines), the testing server and one of our production servers. The error is only occurring on one of our servers. The only difference between this server is the OS used. On this server, we are using The following are the details of this server.
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final