You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autowired properties can remain unset during concurrent instantiation of prototype-beans [SPR-9806] #14439
Autowired properties of prototype-beans referencing singletons can remain unset, if ApplicationContext.getBean(...) is called for the prototype-bean concurrently.
Neither the initialization-type of the singleton, nor the fact, whether the singleton already exists or not, plays a role (i.e. the error occurs even if the singleton is already initialized).
The error is reproducible even with low concurrency-rates (2 threads).
Activity
spring-projects-issues commentedon Sep 18, 2012
Barnabas Bodnar commented
The attachment concurrent-getbean-with-autowiring.zip contains a minimal environment and code required to reproduce the error.