java.lang.IllegalStateException: Can't create measure for line 703 for file 'C:/ Paylocity/Escher/BusinessFacade/Notification/notification.cs' with 699 lines at org.sonar.batch.sensor.coverage.CoverageExclusions.validateMaxLine(Co verageExclusions.java:158) at org.sonar.batch.sensor.coverage.CoverageExclusions.validate(CoverageE xclusions.java:129) at org.sonar.batch.deprecated.DeprecatedSensorContext.saveMeasure(Deprec atedSensorContext.java:205) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyze(Cov erageReportImportSensor.java:103) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyse(Cov erageReportImportSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor. java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:5 0) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExe cutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanConta iner.java:189) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.j ava:265) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:260) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:258) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanCon tainer.java:250) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.batch.scan.ProjectScanContainer.startComponents(ProjectScan Container.java:128) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127)

Google Groups | Spencer | 6 months ago
  1. 0

    MSBuild.SonarQube.Runner errors out on running the 'end' process with no details of the problem

    Google Groups | 6 months ago | Spencer
    java.lang.IllegalStateException: Can't create measure for line 703 for file 'C:/ Paylocity/Escher/BusinessFacade/Notification/notification.cs' with 699 lines at org.sonar.batch.sensor.coverage.CoverageExclusions.validateMaxLine(Co verageExclusions.java:158) at org.sonar.batch.sensor.coverage.CoverageExclusions.validate(CoverageE xclusions.java:129) at org.sonar.batch.deprecated.DeprecatedSensorContext.saveMeasure(Deprec atedSensorContext.java:205) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyze(Cov erageReportImportSensor.java:103) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyse(Cov erageReportImportSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor. java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:5 0) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExe cutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanConta iner.java:189) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.j ava:265) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:260) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:258) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanCon tainer.java:250) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.batch.scan.ProjectScanContainer.startComponents(ProjectScan Container.java:128) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127)
  2. 0

    SQ runner fails with Exception on parsing a code contract interface

    Google Groups | 6 months ago | Imre Lengyel
    org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
  3. 0

    IllegalStateException in Sonar task

    GitHub | 8 months ago | pascalberger
    java.lang.IllegalStateException: Can't create measure for line 31 for file 'D:/BuildAgentTest/_work/1/s/MyFile.cs' with 30 lines 2016-06-07T09:47:36.1321589Z ##[error]at org.sonar.batch.sensor.coverage.CoverageExclusions.validateMaxLine(CoverageExclusions.java:158)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Update to Grails 3.0.x

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Can't create measure for line 703 for file 'C:/ Paylocity/Escher/BusinessFacade/Notification/notification.cs' with 699 lines at org.sonar.batch.sensor.coverage.CoverageExclusions.validateMaxLine(Co verageExclusions.java:158) at org.sonar.batch.sensor.coverage.CoverageExclusions.validate(CoverageE xclusions.java:129) at org.sonar.batch.deprecated.DeprecatedSensorContext.saveMeasure(Deprec atedSensorContext.java:205) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyze(Cov erageReportImportSensor.java:103) at org.sonar.plugins.dotnet.tests.CoverageReportImportSensor.analyse(Cov erageReportImportSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor. java:58) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:5 0) at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExe cutor.java:83) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanConta iner.java:189) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.j ava:265) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:260) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScan Container.java:258) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanCon tainer.java:250) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentC ontainer.java:142) at org.sonar.batch.scan.ProjectScanContainer.startComponents(ProjectScan Container.java:128) at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer .java:127)

      at org.sonar.batch.task.ScanTask.execute()
    2. org.sonar.batch
      ScanTask.execute
      1. org.sonar.batch.task.ScanTask.execute(ScanTask.java:55)
      1 frame