Closed marcofranssen closed 5 years ago
I have added a StackOverflow question as well in case it might be Gradle related. https://stackoverflow.com/questions/55453624/sonarqube-7-6-unable-to-load-component-class-org-sonar-plugins-checkstyle-checks
Unable to load component class org.sonar.plugins.checkstyle.CheckstyleExecutor
Should I remove the plugin from plugin directory manually and then reinstall it maybe? Is there any suggestion on the steps I could try to fix this?
Root reason:
Caused by: org.picocontainer.injectors.AbstractInjector$UnsatisfiableDependenciesException: org.sonar.plugins.checkstyle.CheckstyleConfiguration has unsatisfied dependency 'class org.sonar.api.profiles.RulesProfile' for constructor 'public org.sonar.plugins.checkstyle.CheckstyleConfiguration(org.sonar.api.config.Configuration,org.sonar.plugins.checkstyle.CheckstyleProfileExporter,org.sonar.api.profiles.RulesProfile,org.sonar.api.batch.fs.FileSystem)' from org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@36bae0c5:75<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@69301ab3:421<[Immutable]:org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer@28f052d7:43<|
related discussion - https://community.sonarsource.com/t/unsatisfied-dependency-in-sq-7-6/6244/6
places where we use such old class - https://github.com/checkstyle/sonar-checkstyle/search?q=RulesProfile&unscoped_q=RulesProfile
reported root class with problem is https://github.com/checkstyle/sonar-checkstyle/blob/master/checkstyle-sonar-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleConfiguration.java#L61 , but it does not have reference to RulesProfile class.
@marcofranssen , please try to reproduce this on SQ that is installed from scratch (no upgrade). Probably you need to manually remove plugin SQ and install it again.
Found the solution:
https://checkstyle-addons.thomasjensen.com/checkstyle-compatibility-matrix.html?hl=8.17;8.18
After upgrading Checkstyle plugin to version 4.18 it works. The 4.18 version also works with the new sonarqube 7.7 release which we decided today to include in our upgrade.
Sonar version: 7.6 Checkstyle sonar plugin verson: 4.17
Steps to reproduce or description of problem:
After upgrading from Sonarqube 7.1 to 7.6 we are facing following issue.
We have following plugins and versions:
During our previous try of upgrading we faced an issue with following plugin which was fixed. https://github.com/sonargraph/sonar-sonargraph-integration/issues/15
On our current 7.1 instance all scans are still running succesfully.