Skip to content
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

Missing Classes for findbugs analysis: makeConcatWithConstants, toPredicate and get #363

Open
Meinolf-S opened this issue May 2, 2021 · 7 comments

Comments

@Meinolf-S
Copy link

Issue Description

When using Sonarqube 7.9.5 (LTS) or 8.8.0 joing the latest configured findbug 4.0.3 plugin we get the following messages in the log output:

The following classes needed for analysis were missing:
makeConcatWithConstants
toPredicate
get

The messages only appear when install findbugs 4.0.3 in sonarqube
(the same also for older versions of findbugs)

Environment

Component Version
Maven 3.6.3
Java Adopt jdk-11.0.9.101-hotspot
Sonarqube 7.9.5 (LTS) also 8.8.0
sonar-maven-plugin 3.9.0.2155
Findbugs 4.0.3 Plugin in Sonarqube
FindSecBugs 1.11.0

Code (If needed)

The project code is a Spring Boot Java project joining Angular + Rest.

@gtoison
Copy link
Contributor

gtoison commented Sep 3, 2021

Hello,
This seems to be an issue in Spotbugs (which is used internally by the SonarQube Spotbugs plugin).
A similar issue was reported in the Spotbugs project: spotbugs/spotbugs#1680

@victorwss
Copy link

This is a due to spotbugs/spotbugs#527, I guess.

@gtoison
Copy link
Contributor

gtoison commented Feb 23, 2023

Also reported here (so an issue in FindSecBugs?) find-sec-bugs/find-sec-bugs#692

@YevheniiPokhvalii
Copy link

YevheniiPokhvalii commented Sep 4, 2023

I don't have find-sec-bugs and neither I have spotbugs installed on the Sonar instance.
I've got the following error:

...
The following classes needed for analysis were missing:
  makeConcatWithConstants
  apply
  hashCode
  toString
  equals
  test
  accept
  validate
  authenticate
  run
  get
  toPredicate
  create
  compare
  applyAsLong
  customize
  
  ...
  BUILD FAILED in 8m 3s

jdk 17
sonar Community EditionVersion 9.9 (build 65466)
findbugs,false,sonar-findbugs-plugin-4.0.5.jar|b4c5a9c47d16e36d8c5bd9c8b1b5f819

@gtoison
Copy link
Contributor

gtoison commented Sep 5, 2023

Findbugs was renamed Spotbugs but the sonar plugin remained "sonar-findbugs-plugin" for compatibility, so you do have Spotbugs installed, that plugin also comes with its own plugins (find-sec-bugs and fb-contrib).

@YevheniiPokhvalii
Copy link

YevheniiPokhvalii commented Sep 5, 2023

Findbugs was renamed Spotbugs but the sonar plugin remained "sonar-findbugs-plugin" for compatibility, so you do have Spotbugs installed, that plugin also comes with its own plugins (find-sec-bugs and fb-contrib).

I see. I checked that our previous Sonar setup did not use that plugin. The Sonar version was Community EditionVersion 9.8 (build 63668) and there was no findbugs nor spotbugs so it's highly likely that this plugin is causing the issue in our new Sonar.

Since I don't have full access to new Sonar server, is it possible to turn off this plugin somehow via sonar-project.properties or during a sonarqube execution?
Am I right that this behavior can cause a build error?

@gtoison
Copy link
Contributor

gtoison commented Sep 5, 2023

This message is a simple warning, it wouldn't cause a build error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants