Uploaded image for project: 'SonarQube Scanner API'
  1. SonarQube Scanner API
  2. SCANNERAPI-131

StackOverflow when sonar.modules is set to an empty value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      When sonar.modules is set to an empty value, the execution of the sonar-runner fails with a StackOverflow.

      It would be better to fail with a more user-friendly message instead.

      SonarQube Runner 2.4
      Java 1.8.0_31 Oracle Corporation (64-bit)
      Windows 8.1 6.3 amd64
      INFO: Runner configuration file: C:\Users\dinesh\Desktop\sonarsource\sonar-runner-2.4\bin\..\conf\sonar-runner.propertie
      s
      INFO: Project configuration file: C:\Users\dinesh\Desktop\sonarsource\sonar-examples\projects\languages\csharp\sonar-pro
      ject.properties
      Exception in thread "main" java.lang.StackOverflowError
              at java.io.InputStream.<init>(InputStream.java:45)
              at java.io.FileInputStream.<init>(FileInputStream.java:123)
              at org.sonar.runner.Conf.toProperties(Conf.java:183)
              at org.sonar.runner.Conf.tryToFindAndLoadPropsFile(Conf.java:231)
              at org.sonar.runner.Conf.loadChildConfigFile(Conf.java:137)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:101)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              at org.sonar.runner.Conf.loadModulesProperties(Conf.java:104)
              ...
      

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            dinesh.bolkensteyn Dinesh Bolkensteyn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: