Excessive WARN log noise in 0.9.11
See original GitHub issueVersion 0.9.11 generates a ton of noise in the logs, but only when used in a Fat Jar, such as:
WARN [2018-11-07 09:47:39,252] org.reflections.Reflections: could not get type for name org.junit.runners.BlockJUnit4ClassRunner from any class loader
! java.lang.ClassNotFoundException: org.junit.runners.BlockJUnit4ClassRunner
! at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
! at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
! at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
I’m using the gradle plugin to build a shadow jar (fat jar) id "com.github.johnrengelman.shadow" version "4.0.2"
See also https://groups.google.com/forum/#!topic/dropwizard-user/I0K4e0APudY for another take
Downgrading to 0.9.10 avoids these excessive log messages. dropwizard-swagger uses this as a transitive dependency. Here’s a workaround for gradle:
ext {
dropwizardVersion = "1.3.7"
orgReflectionsVersion = "0.9.10"
}
....
dependencies {
....
compile("com.smoketurner:dropwizard-swagger:${dropwizardVersion}-1") {
// version 0.9.11 generates tons of noise in WARN logs about types it can't find: https://groups.google.com/forum/#!topic/dropwizard-user/I0K4e0APudY
exclude(group: "org.reflections")
}
compile "org.reflections:reflections:${orgReflectionsVersion}"
....
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6
Top Results From Across the Web
Faq - DeSmuME Wiki
DeSmuME FAQ 0.9.11. This FAQ holds a list of many commonly asked questions about DeSmuME. If you need information about an older version, ......
Read more >User guide
The (*) sign appearing after the layer's name means that registration data is already available for this layer. When processing images, ...
Read more >PA Temperature, Radioactive Tracer, and Noise Logging for ...
Mechanical integrity problems both related and not-related to injection can be investigated using the three logging tools: radioactive tracer, noise and ...
Read more >Build neutrinolabs/pulseaudio-module-xrdp package for epel7
Solution: As far as you have F31 installed, you can install this RPM : ## WARNING ## NOT A FEDORA RPM NOR AV...
Read more >Bug #1254872 “libvirtError: Timed out during operation
Setup openstack cluster with heavy VM turnover and querying. ... export LIBVIRT_LOG_OUTPUTS=1:file:/var/log/libvirt/nova-cpu.log".
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If I downgrade to 0.9.10, I’ll get the following error
This is with a gradle of
If I use either 0.9.11 or 0.9.12, I get the following error:
I also tried excluding guice and findbugs from the reflectionand still the same error:
error;
Any help appreciated Thanks, Derek
came to say im getting the same thing. Its something to do with the version of DropWizard (im using 2.0.10) and the version of the Swagger bundle (2.0.0) and conflicting reflections packages.
When i drop to these version i see no errors:
<dropwizard.version>1.3.8</dropwizard.version>
<dropwizard-swagger.version>1.3.7-1</dropwizard-swagger.version>