sonarRunner error 2.4 with sonarqube 5.0.0

Hi,

I have a weird error while executing sonarRunner.
I don’t know if the error comes from sonarRunner or from Sonar. I can’t manage to get some information from Sonar and the error is not really explicit.

gradle version : 2.4
sonnarRunner :2.4
java 8
sonarQube : 5.0.0


Starting a new Gradle Daemon for this build (subsequent builds will be faster).
:sefora-common:compileJava UP-TO-DATE
:sefora-common:processResources UP-TO-DATE
:sefora-common:classes UP-TO-DATE
:sefora-common:jar UP-TO-DATE
:sefora-ref:compileJava UP-TO-DATE
:sefora-ref:processResources UP-TO-DATE
:sefora-ref:classes UP-TO-DATE
:sefora-ref:jar UP-TO-DATE
:sefora-ind:compileJava UP-TO-DATE
:sefora-ind:processResources UP-TO-DATE
:sefora-ind:classes UP-TO-DATE
:sefora-ind:jar UP-TO-DATE
:sefora-sec:compileJava UP-TO-DATE
:sefora-sec:processResources UP-TO-DATE
:sefora-sec:classes UP-TO-DATE
:sefora-sec:jar UP-TO-DATE
:sefora-fpc:compileJava UP-TO-DATE
:sefora-fpc:processResources UP-TO-DATE
:sefora-fpc:classes UP-TO-DATE
:sefora-fpc:jar UP-TO-DATE
:sefora-batch:compileJava UP-TO-DATE
:sefora-batch:processResources UP-TO-DATE
:sefora-batch:classes UP-TO-DATE
:sefora-batch:jar UP-TO-DATE
:sefora-admin-web:compileJava UP-TO-DATE
:sefora-admin-web:processResources UP-TO-DATE
:sefora-admin-web:classes UP-TO-DATE
:sefora-admin-web:compileTestJava UP-TO-DATE
:sefora-admin-web:processTestResources UP-TO-DATE
:sefora-admin-web:testClasses UP-TO-DATE
:sefora-admin-web:test UP-TO-DATE
:sefora-batch:compileTestJava UP-TO-DATE
:sefora-batch:processTestResources UP-TO-DATE
:sefora-batch:testClasses UP-TO-DATE
:sefora-batch:test UP-TO-DATE
:sefora-common:compileTestJava UP-TO-DATE
:sefora-common:processTestResources UP-TO-DATE
:sefora-common:testClasses UP-TO-DATE
:sefora-common:test UP-TO-DATE
:sefora-fpc:compileTestJava UP-TO-DATE
:sefora-fpc:processTestResources UP-TO-DATE
:sefora-fpc:testClasses UP-TO-DATE
:sefora-fpc:test UP-TO-DATE
:sefora-ind:compileTestJava UP-TO-DATE
:sefora-ind:processTestResources UP-TO-DATE
:sefora-ind:testClasses UP-TO-DATE
:sefora-ind:test UP-TO-DATE
:sefora-ref:compileTestJava UP-TO-DATE
:sefora-ref:processTestResources UP-TO-DATE
:sefora-ref:testClasses UP-TO-DATE
:sefora-ref:test UP-TO-DATE
:sefora-sec:compileTestJava UP-TO-DATE
:sefora-sec:processTestResources UP-TO-DATE
:sefora-sec:testClasses UP-TO-DATE
:sefora-sec:test UP-TO-DATE
:sonarRunner
SonarQube Runner 2.4
Java 1.8.0_40 Oracle Corporation (64-bit)
Linux 3.13.0-44-generic amd64
INFO: Runner configuration file: NONE
INFO: Project configuration file: /data/development/backend/sefora-admin-backend/gitlab-sefora-admin-back/build/tmp/sonarRunner/sonar-project.properties
INFO: Default locale: “fr_FR”, source code encoding: "UTF-8"
INFO: Work directory: /data/development/backend/sefora-admin-backend/gitlab-sefora-admin-back/build/sonar
INFO: SonarQube Server 5.0
16:02:16.118 INFO - Load global referentials…
16:02:16.463 INFO - Load global referentials done: 349 ms
16:02:16.472 INFO - User cache: /home/dev.recif.nc/XXX/.sonar/cache
16:02:16.491 INFO - Install plugins
16:02:16.657 INFO - Install JDBC driver
16:02:16.670 INFO - Create JDBC datasource for jdbc:postgresql://pc-ffaive-01.dev.recif.nc:5432/sonar
16:02:18.473 INFO - Initializing Hibernate
16:02:21.457 INFO - Load project referentials…
16:02:23.061 INFO - Load project referentials done: 1604 ms
16:02:23.068 INFO - Load project settings
16:02:23.654 INFO - Loading technical debt model…
16:02:23.687 INFO - Loading technical debt model done: 33 ms
16:02:23.700 INFO - Apply project exclusions
16:02:23.862 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.871 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.879 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.902 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.910 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.919 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.931 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:23.945 WARN - ‘sonar.dynamicAnalysis’ is deprecated since version 4.3 and should no longer be used.
16:02:24.158 INFO - ------------- Scan sefora-admin-web
16:02:24.167 INFO - Load module settings
16:02:26.005 INFO - Language is forced to java
16:02:26.008 INFO - Loading rules…
16:02:26.547 INFO - Loading rules done: 539 ms
16:02:26.622 INFO - Configure Maven plugins
16:02:26.813 INFO - Compare to previous analysis (2015-05-06)
16:02:26.833 INFO - Compare over 30 days (2015-05-17, analysis of 2015-05-06 16:37:22.2)
16:02:26.851 INFO - Compare over 7 days (2015-06-09, analysis of 2015-05-06 16:37:22.2)
16:02:26.913 INFO - Loaded quality gate 'SonarQube way’
16:02:27.185 INFO - Base dir: /data/development/backend/sefora-admin-backend/gitlab-sefora-admin-back/sefora-admin-web
16:02:27.186 INFO - Working dir: /data/development/backend/sefora-admin-backend/gitlab-sefora-admin-back/build/sonar/sefora.admin.back_sefora-admin-web
16:02:27.186 INFO - Source paths: src/main/resources, src/main/java
16:02:27.189 INFO - Test paths: src/test/resources, src/test/java
16:02:27.190 INFO - Binary dirs: build/classes/main, build/resources/main
16:02:27.190 INFO - Source encoding: UTF-8, default locale: fr_FR
16:02:27.190 INFO - Index files
16:02:27.368 INFO - 5 files indexed
16:02:27.524 INFO - Quality profile for java: ffaive
16:02:27.576 INFO - JIRA issues sensor will not run as some parameters are missing.
16:02:27.591 INFO - Sensor JavaSquidSensor…
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 13.135s
Final Memory: 23M/551M
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
INFO: ------------------------------------------------------------------------
:sonarRunner FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:sonarRunner’.

Process ‘command ‘/usr/lib/jvm/java-8-oracle/bin/java’’ finished with non-zero exit value 1


Here is my configuration :


sonarRunner {
toolVersion = '2.4’
sonarProperties {
property “sonar.dynamicAnalysis”, ""
property “sonar.host.url”, "XXXX"
property “sonar.jdbc.url”, "XXXX"
property “sonar.jdbc.driverClassName”, "org.postgresql.Driver"
property “sonar.jdbc.username”, "sonar"
property “sonar.jdbc.password”, "sonar"
property “sonar.sourceEncoding”, "UTF-8"
property “sonar.language”, "java"
property “sonar.projectKey”, "sefora.admin.back"
property “sonar.projectName”, "Sefora Admin Backend"
property “sonar.projectDescription”, “Backend Sefora Admin”
}
}


Maybe try increasing your permgen space and running gradle with --debug?