SonarQube JavaScript
  1. SonarQube JavaScript
  2. SONARJS-3

Allow to specify absolute path as a value for properties "sonar.javascript.jstestdriver.reportsPath" and "sonar.javascript.jstest.reportsPath"

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently it accepts only path relative to project directory.

        Issue Links

          Activity

          Hide
          Freddy Mallet added a comment -

          @Evgeny, when using Sonar 3.7 RC2, I get the following error :

          10:00:39.738 INFO  - Sensor JsTestDriverSensor...
          INFO: ------------------------------------------------------------------------
          INFO: EXECUTION FAILURE
          INFO: ------------------------------------------------------------------------
          Total time: 5.756s
          Final Memory: 5M/85M
          INFO: ------------------------------------------------------------------------
          ERROR: Error during Sonar runner execution
          org.sonar.runner.impl.RunnerException: Unable to execute Sonar
          	at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:79)
          	at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:63)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:57)
          	at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
          	at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:71)
          	at org.sonar.runner.api.Runner.execute(Runner.java:89)
          	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:41)
          Caused by: java.lang.NoClassDefFoundError: org/sonar/plugins/surefire/api/AbstractSurefireParser
          	at java.lang.ClassLoader.defineClass1(Native Method)
          	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
          	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
          	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
          	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
          	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
          	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386)
          	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
          	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
          	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
          	at org.sonar.plugins.javascript.jstestdriver.JsTestDriverSensor.collect(JsTestDriverSensor.java:63)
          	at org.sonar.plugins.javascript.jstestdriver.JsTestDriverSensor.analyse(JsTestDriverSensor.java:57)
          	at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72)
          	at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114)
          	at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142)
          	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88)
          	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73)
          	at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:186)
          	at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:181)
          	at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:174)
          	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88)
          	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73)
          	at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
          	at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
          	at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82)
          	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88)
          	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73)
          	at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156)
          	at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144)
          	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88)
          	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73)
          	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92)
          	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74)
          	at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45)
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          	at java.lang.reflect.Method.invoke(Method.java:597)
          	at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:75)
          	... 9 more
          Caused by: java.lang.ClassNotFoundException: org.sonar.plugins.surefire.api.AbstractSurefireParser
          	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
          	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
          	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
          
          Show
          Freddy Mallet added a comment - @Evgeny, when using Sonar 3.7 RC2, I get the following error : 10:00:39.738 INFO - Sensor JsTestDriverSensor... INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 5.756s Final Memory: 5M/85M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:79) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:63) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:57) at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:71) at org.sonar.runner.api.Runner.execute(Runner.java:89) 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:41) Caused by: java.lang.NoClassDefFoundError: org/sonar/plugins/surefire/api/AbstractSurefireParser at java.lang. ClassLoader .defineClass1(Native Method) at java.lang. ClassLoader .defineClassCond( ClassLoader .java:631) at java.lang. ClassLoader .defineClass( ClassLoader .java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:386) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.sonar.plugins.javascript.jstestdriver.JsTestDriverSensor.collect(JsTestDriverSensor.java:63) at org.sonar.plugins.javascript.jstestdriver.JsTestDriverSensor.analyse(JsTestDriverSensor.java:57) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72) at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114) at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:186) at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:181) at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:174) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156) at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:75) ... 9 more Caused by: java.lang.ClassNotFoundException: org.sonar.plugins.surefire.api.AbstractSurefireParser at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
          Hide
          Freddy Mallet added a comment -

          The Sonar-Java-Surefire plugin was not deployed when doing this test.

          Show
          Freddy Mallet added a comment - The Sonar-Java-Surefire plugin was not deployed when doing this test.
          Hide
          Freddy Mallet added a comment -

          Ok and I've created the following JIRA ticket 'http://jira.codehaus.org/browse/SONAR-4567' so make it possible to depend on this 'org/sonar/plugins/surefire/api/AbstractSurefireParser' class without having the SonarQube Java Ecosystem installed.

          Show
          Freddy Mallet added a comment - Ok and I've created the following JIRA ticket 'http://jira.codehaus.org/browse/SONAR-4567' so make it possible to depend on this 'org/sonar/plugins/surefire/api/AbstractSurefireParser' class without having the SonarQube Java Ecosystem installed.

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Evgeny Mandrikov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: