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
Provide metrics fallback if ThreadLocalRandom fails #690
Comments
You could use this: https://github.com/scratches/spring-boot-legacy/blob/master/src/main/java/org/springframework/boot/legacy/context/web/MetricFilterAutoConfiguration.java. That was created for Java 1.6 apps, so it can't possibly be using |
Where do you specify you want to use it? |
The "legacy" version was specifically designed to work in Java 1.6. If you use 1.6 it only has to be on the classpath. If not you would have to explicitly exclude the default |
Thanks! |
I can't find any references to |
Here's the StackTrace
|
That looks like a bug in your JDK (maybe caused by a security constraint?): |
Is this issue dead? |
https://twitter.com/chanezon/status/456900551880757248
https://twitter.com/chanezon/status/456900551880757248
Metrics uses
java.util.concurrent.ThreadLocalRandom.initialSeed
which in turn usesjava.net.NetworkInterface.getNetworkInterfaces
. This can fail on some PaaS setups so we might want to look at some kind of fallback.The text was updated successfully, but these errors were encountered: