Unable to load component class org.sonar.scanner.scan.filesystem.project file indexer

Hi,

I am using SonarQube version 7.6.0.21501 and Sonar Scaner version 4.0.0.1744 for PL\SQL plugin.
i copied a SQL file and executed the command

sonar-scanner.bat -D"sonar.projectKey=NeerajEMProject" -D"sonar.sources=." -D"sonar.host.url=https://i.ci.build.ge.com/3utgrseu/sq" -D"sonar.login=ae6e665e0a2e3a6b630019fff9bb156ad048b9e2"

However getting the error as unable to load component class org.sonar.scanner.scan.filesystem.project file indexer, Re-run SonarQube Scanner using the -X switch to enable full logging.

I dont know whats the issue here and how to run with -X option.
Any advise on the issue.

Thanks,
Neeraj.

Neeraj,

This just means running sonar-scanner -X (with your other analysis parameter included as well)

Is there a more detailed error in the logs? A full stacktrace, perhaps? Typically such an error just a part of a more precise error

Colin

Hi Colin, I am aware that -X will give me more detailed error but I could not find the right way of putting it in the command

Can you tell me where to put -X here, I replaced -D with -X and it does not worl
sonar-scanner.bat -D"sonar.projectKey=NeerajEMProject" -D"sonar.sources=." -D"sonar.host.url=https://i.ci.build.ge.com/3utgrseu/sq" -D"sonar.login=ae6e665e0a2e3a6b630019fff9bb156ad048b9e2"

Just append -X to your existing command. Don’t change anything else.