-
Notifications
You must be signed in to change notification settings - Fork 226
StackOverflowError when using Spring 4.3 #184
Comments
Seems to happen when a |
Which stack frame or set of stack frames repeats 100 times? |
Not exactly a hundred, but several dozens:
|
@ryantenney Are you able to reproduce it, and/or do you need more info from me? |
I'm trying to understand what |
It happens during the call to: "com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration#getMetricRegistry" because "delegates" contain an instance of "DelegatingMetricsConfiguration" which causes Stack Overflow. |
@roykachouh @henrik242 @rafal-glowinski do any of you have AspectJ Autoproxying enabled? |
@ryantenney Nope, not that I'm aware of. |
@ryantenney thanks for looking into this...no i don't have aspectj autoproxying enabled...i even tried disabling the auto-configuration just in case...but to no avail, the stack still overflows...
|
For now I "fixed" this by removing
|
Yep, temporarily got around it by removing On Wed, Aug 3, 2016 at 5:46 PM Dmitry Chornyi [email protected]
|
I'm having the same issue and it looks like it is because the This works: @Configuration
@EnableMetrics
public class MetricsConfig extends MetricsConfigurerAdapter {
} This does not and causes the stack overflow @Configuration
@EnableMetrics
public class MetricsConfig {
} This repo illustrates it: https://github.com/Trii/SpringBootMetricsSpringBug Maybe this is intended behavior and more of a usage error. |
I ran into the same problem. I've tracked the issue down to The simplest solution therefore seems to be not to implement |
This issue should be closed, as it doesn't reproduce with spring 4.3.7 (spring boot 1.5.X). |
I am trying to upgrade to Spring 4.3.0, but I am unable to initialize the spring context:
The text was updated successfully, but these errors were encountered: