-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Modification in AbstractAutowireCapableBeanFactory to prevent stackoverflow errors causes context not to load. [SPR-15125] #19692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Juergen Hoeller commented #19119 was a rather important fix since prior to this change we completely bypassed So in your case, we seem to back out of checking your Are you possibly declaring this |
Juergen Hoeller commented Or are you possibly trying to inject a In any case, please show some configuration snippets for a clearer indication. There is something special about your setup that we do not have a unit test for. |
Juergen Hoeller commented I've added a lenient fallback to an early singleton reference of the currently created This will make into tomorrow's |
Jeff Maxwell commented
Not that I am aware.
It does not appear to do this.
I have struggled to create a minimal unit test of this issue as the configuration/code base is rather labyrinthine.
I will pull and retest. |
Juergen Hoeller commented Unfortunately, there was still some stack overflow potential left, so I haven't committed any change yet. Self references to a The declarations of your |
Jeff Maxwell commented We believe that we have narrowed the issue a bit. Does this help? |
Juergen Hoeller commented I've added additional detection of statically declared I'll ping you once this is available in a |
Juergen Hoeller commented This is available in the latest (See http://projects.spring.io/spring-framework/ for how to obtain a snapshot from our snapshot repository.) |
Jeff Maxwell commented It works. |
Jeff Maxwell opened SPR-15125 and commented
Modification in
AbstractAutowireCapableBeanFactory
to preventStackOverflowErrors
causes context not to load withorg.springframework.beans.factory.NoSuchBeanDefinitionException
.This commit causes our code to throw the exception below.
Earlier versions of
AbstractAutowireCapableBeanFactory
work fine.Note that the
reference.service.instrumentEhcache
bean is created via a subclass oforg.springframework.cache.ehcache.EhCacheFactoryBean
The context being loaded is rather complex, I have not yet been able to create a minimal test example.
Affects: 4.3.3
Issue Links:
Referenced from: commits 32fc855, 24ebd15
The text was updated successfully, but these errors were encountered: