You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2022/10/26 07:21:00 UTC

[jira] [Created] (HBASE-27446) Spotbugs 4.7.2 report a lot of logging errors when generating report

Duo Zhang created HBASE-27446:
---------------------------------

             Summary: Spotbugs 4.7.2 report a lot of logging errors when generating report
                 Key: HBASE-27446
                 URL: https://issues.apache.org/jira/browse/HBASE-27446
             Project: HBase
          Issue Type: Bug
          Components: build, jenkins
            Reporter: Duo Zhang
            Assignee: Duo Zhang


Like this

{noformat}
Unexpected problem occured during version sanity check
11:27:32  Reported exception:
11:27:32  java.lang.AbstractMethodError: org.apache.logging.slf4j.SLF4JServiceProvider.getRequestedApiVersion()Ljava/lang/String;
11:27:32  	at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:297)
11:27:32  	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:141)
11:27:32  	at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:421)
11:27:32  	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:407)
11:27:32  	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:356)
11:27:32  	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:382)
11:27:32  	at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:113)
11:27:32  	at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:353)
11:27:32  	at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:84)
11:27:32  	at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:67)
11:27:32  	at edu.umd.cs.findbugs.DetectorFactoryCollection.<clinit>(DetectorFactoryCollection.java:57)
11:27:32  	at edu.umd.cs.findbugs.workflow.Filter.main(Filter.java:693)
{noformat}

Checked the dependencies, it uses slf4j-api-2.0.0 and log4j2 2.18.0 together, which may be caused by LOG4J2-3139.

In spotbugs 4.7.3 they bumped log4j2 to 2.19.0, which should have fixed the problem.

https://github.com/spotbugs/spotbugs/issues/2176

Let's also do an upgrade.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)