Comments (6)
This should be fixed in version 4.2.3 (just released)
Note that the fix needs the SonarQube version to be >= 9.8
from sonar-findbugs.
Hello @eirisdg are the JSP sources compiled into .class files and are they in folder /builds/[...]/target/classes
?
I'm asking because I see that in your logs:
96106 [ERROR] sonar.java.binaries was set to /builds/[...]/target/classes
SpotBugs needs the .class
files because it analyses the compiled bytecode, not the source files. So when it finds sources files but not class files it throws that error.
I don't know or use the Branch Community Plugin, any idea what might be causing the problem?
from sonar-findbugs.
Hello @gtoison.
Yes, the classes are in the folder.
It's strange, because if I don't set the vars related to branch plugin, the SpotBugs scanner works well.
In the same way that if I disable the spotbug plugin, the scanner works well.
I don't know why, but definitely is related to some incompatibility with this plugin:
https://github.com/mc1arke/sonarqube-community-branch-plugin
I can't try with payment version sonar that supports branches by default if the error is present there to.
from sonar-findbugs.
I looked into it and I have no idea what might be causing the problem: the plugin uses Sonar's built-in JavaResourceLocator to get the .class
files:
So my best guess would be that during Pull Request analysis sonar's JavaResourceLocator behaves differently and maybe only returns the class files corresponding to modified sources?
It will be hard for me to investigate this if I'm not able to reproduce the problem; would you be able to debug it on your end?
I'd like to know what's happening inside
You can debug the maven build using mvnDebug
instead of mvn
and then attach a remote debugger to it
from sonar-findbugs.
I looked into it and I have no idea what might be causing the problem: the plugin uses Sonar's built-in JavaResourceLocator to get the
.class
files:So my best guess would be that during Pull Request analysis sonar's JavaResourceLocator behaves differently and maybe only returns the class files corresponding to modified sources?
It will be hard for me to investigate this if I'm not able to reproduce the problem; would you be able to debug it on your end? I'd like to know what's happening inside
You can debug the maven build using
mvnDebug
instead ofmvn
and then attach a remote debugger to it
I would like to know how to debug it, but I'm not developer, only SRE. :/
from sonar-findbugs.
I tried reproducing the problem but could not so far
I think you need to give me more information here and ideally a small project (plus setup instructions) so I can reproduce
What version or sonarqube are you using?
from sonar-findbugs.
Related Issues (20)
- NoClassDefFoundError after Sonar update from 10.4 to 10.5 HOT 2
- ERROR: isAlive was interrupted when applying all findbugs rules into my existing sonarway copy profile to scan a monolithic project HOT 8
- Can not execute Findbugs: One (sub)project contains Java source files that are not compiled HOT 8
- Support Java SDK 8 and 21 simultaneously HOT 3
- Sonatype deploy now requires token authentication HOT 7
- SonarQube Project showing an issue from a Java findbugs rule which is not there in the selected Quality Profile HOT 7
- SonarQube fails with Java 17 HOT 8
- Spike in SonarQube Findings HOT 2
- Support Java 21 (Unsupported class file major version 65) HOT 3
- Dependency Dashboard
- Findbugs timeout issue HOT 6
- new option to analyze tests HOT 2
- Update PAT_TO_FORK HOT 6
- Findbugs is reporting false positive bugs SA_LOCAL_SELF_COMPARISON when using instanceof pattern matching HOT 13
- Integration tests occassionally fail due to errors accessing the jfrog repo HOT 1
- Make "sonar-findbugs" compatible with SonarQube 10.4 "DownloadOnlyWhenRequired" feature HOT 2
- Encountering several errors related to the FindBugs plugin while running a build on Bamboo. HOT 15
- v4.2.8 is missing a release artifact HOT 1
- java.lang.IllegalArgumentException: Error: missing bug code for keySECXXEVAL HOT 4
- Getting "Hard coded password found here" exception where (IMHO) it shouldn't HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-findbugs.