How Do You Troubleshoot the SonarQube Scanner Error “java.lang.IllegalStateException: Unable to load component class or.sonar.scanner.scan.ProjectLock”?

Problem scenario
You are trying to run SonarScanner, but you get an error about "java.lang.IllegalStateException: Unable to load component class or.sonar.scanner.scan.ProjectLock".  What should you do?

Possible solution
Is there a file in the directory where you are running the above command?  Does your user have access to read the file?  Check these things first.

Leave a comment

Your email address will not be published. Required fields are marked *