Closed
Description
Mark Paluch opened DATACMNS-1642 and commented
Trying to bootstrap a repository can lead to a NullPointerException
in RepositoryFactoryBeanSupport.getObject(…)
.
What happens:
- RepositoryFactoryBean gets initialized in
afterPropertiesSet()
- Initialization requests the type from the
MappingContext
MappingContext
publishes an application eventApplicationEventMulticaster
looks up event listeners from the context- Bean lookup calls
getObject(…)
method on the RepositoryFactoryBean that is currently initialized. Therepository
field was not yet set therefore the call fails with an NPE
Stack trace and reproducer are attached
Affects: 2.2.3 (Moore SR3)
Attachments:
- gateway-service.zip (73.74 kB)
- stacktrace.txt (41.75 kB)