diff --git a/pom.xml b/pom.xml
index ab6751e7..2e062692 100755
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,7 @@
+ Exception in thread "main" java.lang.NoSuchFieldError: tlm + at org.apache.log4j.MDCFriend.fixForJava9(MDCFriend.java:11) + at org.slf4j.impl.Log4jMDCAdapter.+ +(Log4jMDCAdapter.java:38) + at Main.main(Main.java:5)
The NoSuchFieldError is thrown
+ when slf4j-log4j12 attempts to access the 'tlm' package
+ private field in org.apache.log4j.MDC which was
+ specified as being of type
+ java.lang.Object in log4j 1.2.x but was changed
+ to java.lang.ThreadLocal in reload4j. Moreover, such
+ access to package private fields from different modules is not
+ authorized by default in modularized applications in Java 9 and
+ later.
To keep a long story short, the NoSuchFieldError
+ can be avoided by using slf4j-reload4j.jar
+ with reload4j.jar. Stated
+ differently, org.slf4j.MDC cannot be used with
+ the slf4j-log4j12.jar and reload4j.jar
+ combination.
SLF4J version ${project.version} is +
SLF4J version ${latest.2.version} is the most recent but it is also experimental/unstable.
slf4j-reload4j
- instead. See below.
-
+ instead. See below.
@@ -289,9 +288,9 @@ SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail
reload4j
framework. Reload4j is a drop-in replacement for log4j version
1.2.7. You also need to place reload4j.jar on your
- class path.
+ class path.
-
+
-->
+
+
+ Correct corrupt "Export-Package" declaration in + MANIFEST.MF in log4j-over-slf4j module. This + fixes SLF4J-541 + reported by Flavio Donzé.
+ +Starting with version 1.7.36, slf4j releases will be + reproducible. By reproducible we mean that anyone checking out the + code corresponding to the release version from source code + repository and building that local copy, will obtain an identical + binary to the published binary. +
+ +
')
-document.write(' '); -document.write(' Sponsor us for the purchase of dedicated hardware. This will enable the production of automated and isolated releases.
'); -document.write(' '); document.write('