You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Task :loggerUsageCheck FAILED
| Output for C:\Tools\java\jdk13\bin\java.exe:checking for wrong usages of ESLogger...
| Exception in thread "main" java.lang.IllegalArgumentException
| at org.objectweb.asm.ClassReader.<init>(ClassReader.java:170)
| at org.objectweb.asm.ClassReader.<init>(ClassReader.java:153)
| at org.objectweb.asm.ClassReader.<init>(ClassReader.java:424)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker.check(ESLoggerUsageChecker.java:125)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker.check(ESLoggerUsageChecker.java:119)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker$1.visitFile(ESLoggerUsageChecker.java:109)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker$1.visitFile(ESLoggerUsageChecker.java:104)
| at java.base/java.nio.file.Files.walkFileTree(Files.java:2803)
| at java.base/java.nio.file.Files.walkFileTree(Files.java:2875)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker.checkLoggerUsage(ESLoggerUsageChecker.java:104)
| at org.elasticsearch.test.loggerusage.ESLoggerUsageChecker.main(ESLoggerUsageChecker.java:86)
The plugin requires Java 11; the asm library can't parse the bytecode though (even though ES itself requires Java 13).
Workaround:
// logger check does not run on jdk 11 bytecode.
loggerUsageCheck.enabled = false
The text was updated successfully, but these errors were encountered:
The logger usage check uses its own version of ASM to inspect class
files for logging usages. Master was updated to support java 11
compilation in #40754. However, 7.x still used ASM 5, which could not
read newer java bytecode versions. This commit bumps ASM in 7.x used in
the logger usage check.
closes#52408
The logger usage check uses its own version of ASM to inspect class
files for logging usages. Master was updated to support java 11
compilation in #40754. However, 7.x still used ASM 5, which could not
read newer java bytecode versions. This commit bumps ASM in 7.x used in
the logger usage check.
closes#52408
As far as I can tell, this doesn't reproduce anymore and was fixed by #52742. I'm going to close, but if I'm wrong please reopen with a reproduction line.
ES 7.6.0:
The plugin requires Java 11; the asm library can't parse the bytecode though (even though ES itself requires Java 13).
Workaround:
The text was updated successfully, but these errors were encountered: