Getting Error during SonarQube Scanner execution [07:43:57]W: [Step 1/1] ERROR: Line 574 is out of range in the file src/main/java/controller/daoimpl/****.java

Sonarqube Version-7.6
Whenever trying to run the sonar analysis using sonar:sonar getting the above error. Every time we either recreate the file or replace the file in that folder and run the analysis again to resolve the issue. And this has to be done every time. Please provide a solution.

Hi, in order for anyone to provide a solution you would have to provide a bit more context. Here there is simply not enough information to help you out.

Can you at the very least, share the logs of the analysis so we can understand at which steps the analysis is failing ?

And before this, as LTS 7.9 is just out, I would strongly recommend to first upgrade and check if issue is still present.

Thanks for your understanding.