Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6665

StackOverflow error when analyzing project with several modules having same key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: Scanner
    • Labels:
      None

      Description

      Example:

      root
       |---- feature1
       |  |
       |  |--- feature1
       |  |--- feature1-spring
       |
       |---- feature2
      

      It is rather a configuration smell, so it would be probably enough to check it and display meaningful error message.

      Stacktrace:

      org.sonar.runner.impl.RunnerException: Unable to execute Sonar
          at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:106)
          at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:89)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:82)
          at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:53)
          at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
          at org.sonar.runner.api.Runner.execute(Runner.java:99)
          at org.sonar.runner.Main.executeTask(Main.java:70)
          at org.sonar.runner.Main.execute(Main.java:59)
          at org.sonar.runner.Main.main(Main.java:53)
      Caused by: java.lang.StackOverflowError
          at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:304)
          at java.lang.StringCoding.encode(StringCoding.java:344)
          at java.lang.String.getBytes(String.java:906)
          at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
          at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
          at java.io.File.isDirectory(File.java:849)
          at org.sonar.batch.scan.ProjectReactorBuilder.setProjectBaseDir(ProjectReactorBuilder.java:296)
          at org.sonar.batch.scan.ProjectReactorBuilder.loadChildProject(ProjectReactorBuilder.java:237)
          at org.sonar.batch.scan.ProjectReactorBuilder.defineChildren(ProjectReactorBuilder.java:222)
          at org.sonar.batch.scan.ProjectReactorBuilder.defineChildren(ProjectReactorBuilder.java:226)
          at org.sonar.batch.scan.ProjectReactorBuilder.defineChildren(ProjectReactorBuilder.java:226)
      

      https://groups.google.com/d/msg/sonarqube/QUyvldrhiKQ/u9xuHAI2FOUJ

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: