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
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).
Uh oh!
There was an error while loading. Please reload this page.
Barnabas Bodnar opened SPR-9806 and commented
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).
Affects: 3.1.2
Attachments:
Issue Links:
@Resource
injection of singleton in prototype using AnnotationConfigApplicationContext is not thread-safeReferenced from: commits b79260a, 7fc1629
The text was updated successfully, but these errors were encountered: