SonarQube Scanner for Gradle Failed for one pipeline

Using sonar-scanner for gradle version 3.3

plugins {
  id "org.sonarqube" version "3.3"

We have some mandatory “master” pipelines all of our 6 java microservices must run on github actions, and for one of them the ./gradlew sonarqube step was failing with not much information, the logs were showing:

java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.scan.filesystem.InputComponentStore

Before we could investigate more changing the log level to debug on build.gradle for that particular service someone suggested to add the paramater -Dsonar.log.level=INFO on that master pipeline that executed the ./gradlew sonarqube command
And boom suddenly the error was gone.

out of curiosity, can anyone explain this behaviour?

Hey there.

  • What version of SonarQube are you using?
  • If you remove -Dsonar.log.level=INFO does the error come back?
  • You should make sure to use the latest version of the SonarScanner for Gradle, v4.2.1

Hi Colin,

  • I dont know the SonarQube version as im not working with that team, i was just helping.
  • My guess is it will come back but i cannot test and troubleshoot more.
  • Ok i will forward this information, using older versions is not recommended?

I will close this topic in a few days, this was a long shoot to see if someone faced the same issue or strange behavior.