Issue with SonarQube Quality Gate with Open JDK 11 and SonarQube 6.7.3

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

    • SonarQube Version: 6.7.3
    • Scanner: sonar-scanner-cli-3.0.3.778
    • SCM: GIT
  • how is SonarQube deployed: zip, Docker, Helm
    zip

  • what are you trying to achieve
    SonarQube Quality Gate data for Open JDK 11

  • what have you tried so far to achieve this
    Configured below Project’s specific Sonar parameter:

    • JDK Home Path whose value is passed via “sonar.java.jdkHome” parameter with path of JDK Home.
    • JDK Version whose value is passed via “sonar.java. source” parameter with value 11 or 1.11.

Please find below details for reference:

  • Error during SonarQube build:

    WARN: Invalid java version (got “11”). The version will be ignored. Accepted formats are “1.X”, or simply “X” (for instance: “1.5” or “5”, “1.6” or “6”, “1.7” or “7”, etc.)

    ERROR: Unable to create symbol table for :
    *\TPMC_Monitor_DevSecOps_3.15.00_Build\tpmc-parent\tpmc-monitor\src\main\java\com\hibernate\customdialect\AppOracleDialect.java
    java.lang.IllegalArgumentException: null
    at org.objectweb.asm.ClassReader.(ClassReader.java:185)

  • SonarQube Configuration

    ‘Dsonar.sources=%RELEASE_WORKSPACE%/%GIT_REPO_PATH%/src/main/java -Dsonar.projectName=%PROJECT_NAME% -Dsonar.projectVersion=%REPORT_VERSION% -Dsonar.java.binaries=%RELEASE_WORKSPACE%/%GIT_REPO_PATH%/target -Dsonar.projectKey=%PROJECT_KEY% -Dsonar.projectBaseDir=%RELEASE_WORKSPACE%/%GIT_REPO_PATH% -Dsonar.coverage.exclusions=***/src/test/** -Dsonar.junit.reportPaths=%RELEASE_WORKSPACE%/%GIT_REPO_PATH%/target/surefire-reports -Dsonar.tests=%RELEASE_WORKSPACE%/%GIT_REPO_PATH%/src/test/java -Dsonar.java.jdkHome=%JAVA_HOME% -Dsonar.java.source=11 -Dsonar.java.libraries=%LOMBOK_PATH%/1.18.20/.jar’

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

6.7.3 → 7.9.6 → 8.9.10 → 9.9

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes for 7.9 to 8.9, as well as the LTS to LTS release upgrade notes for 8.9 to 9.9 helpful. If you have questions about upgrading, feel free to open a new thread for that here.

 
Ann