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 | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Sonar Scan failing on a file it creates during the scan

    Stack Overflow | 9 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 | 1 year 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]

    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