java.lang.IllegalStateException: Could not analyze the file c:\sonar-examples-ma ster\projects\Main\.sonar\JHAM_JHAM.Web.Admin\ToolsFile.xml

Stack Overflow | Brad Thomas | 5 months ago
  1. 0

    Sonar Scan failing on a file it creates during the scan

    Stack Overflow | 5 months ago | Brad Thomas
    java.lang.IllegalStateException: Could not analyze the file c:\sonar-examples-ma ster\projects\Main\.sonar\JHAM_JHAM.Web.Admin\ToolsFile.xml
  2. 0

    CSS with source maps comments break Sonar execution.

    GitHub | 10 months ago | FJLopezGarcia
    java.lang.IllegalArgumentException: Unable to highlight file [moduleKey=Rapid-Development-Offering:DIM-Portal:css_module, relative=acc-font.css, basedir=/Users/franciscojlopez/Documents/GIT/DigitalIntModel_5228Git/Source/Web/Accenture.Dim.Web/app/css] from offset 356528 to offset 356568 [00:48:18]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Invalid endLine error when analyzing maven project by using SonarQube

    Stack Overflow | 1 year ago | shuo zhang
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project GlobalWebsite: Invalid endLine: 483. File [moduleKey=com.fitchratings:website, relative=src/main/webapp/creditdesk/sectors/perf_analytics/esf/deal_compare/dc.js, basedir=C:\global-website-legacy\src\website] has 482 lines.***
  5. 0

    POM.XML file throwing exception with XML plugin

    Google Groups | 4 months ago | Brandon Etchison
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project sonar-on-analysis-plugin: Could not analyze the file D:\Agent1\_work\28\s\sonar-on-analysis-plugin\target\sonar\pom.xml

    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.IllegalArgumentException

      Unable to highlight file [moduleK ey=JHAM:JHAM.Web.Admin, relative=SystemAdmin/ToolsFile.xml, basedir=C:\sonar-exa mples-master\projects\Main\JHAM.Web.Admin]

      at org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight()
    2. org.sonar.api
      DefaultHighlighting.highlight
      1. org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting.highlight(DefaultHighlighting.java:86)
      1 frame
    3. SonarQube
      DefaultHighlightable$DefaultHighlightingBuilder.highlight
      1. org.sonar.batch.source.DefaultHighlightable$DefaultHighlightingBuilder.highlight(DefaultHighlightable.java:85)
      1 frame
    4. org.sonar.plugins
      XmlSensor.analyse
      1. org.sonar.plugins.xml.XmlSensor.saveSyntaxHighlighting(XmlSensor.java:117)
      2. org.sonar.plugins.xml.XmlSensor.runChecks(XmlSensor.java:104)
      3. org.sonar.plugins.xml.XmlSensor.analyse(XmlSensor.java:84)
      3 frames
    5. SonarQube
      ModuleScanContainer.doAfterStart
      1. org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
      2. org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
      3. org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
      4. org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
      4 frames
    6. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    7. SonarQube
      ProjectScanContainer.doAfterStart
      1. org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
      2. org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
      3. org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:234)
      4. org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
      4 frames
    8. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    9. org.sonar.batch
      TaskContainer.doAfterStart
      1. org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
      2. org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
      2 frames
    10. org.sonar.core
      ComponentContainer.execute
      1. org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
      2. org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
      2 frames
    11. SonarQube
      Batch.executeTask
      1. org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
      2. org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
      2 frames
    12. org.sonarsource.scanner
      BatchIsolatedLauncher.execute
      1. org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
      1 frame
    13. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    14. org.sonarsource.scanner
      IsolatedLauncherProxy.invoke
      1. org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
      1 frame
    15. com.sun.proxy
      $Proxy0.execute
      1. com.sun.proxy.$Proxy0.execute(Unknown Source)
      1 frame
    16. org.sonarsource.scanner
      Main.main
      1. org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:240)
      2. org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
      3. org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:110)
      4. org.sonarsource.scanner.cli.Main.execute(Main.java:72)
      5. org.sonarsource.scanner.cli.Main.main(Main.java:60)
      5 frames