I also ran into a similar issue when starting SonarQube with JaCoCo code distribution reports for Java code:
ERROR: Error during SonarQube Scanner execution java.lang.IllegalStateException: Line [..] is out of range in the file [..]
The problem arose because of an old code coverage report that was created before the code was updated. It has been fixed after receiving coverage reports. Therefore, please also make sure that the coverage reports from the previous run are cleared and the new coverage reports are in place.
source share