SonarQube does not recognize java 17 (devops) An API incompatibility was encountered while executing

Hi Team,

We are migration our project to java 17 from 8 along with sonarqube, kindly do check the properties we have added so far in Pom file and devops Prepare Anlaysis on sonarQube properties

           <sonar.language>java</sonar.language>
	<sonar.java.source>17</sonar.java.source>
	<sonar.java.target>17</sonar.java.target>
	<java.version>17</java.version>
	 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<maven.compiler.release>17</maven.compiler.release>

Also during maven build getting the exception like [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project DamenDigitalAdmin: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar: java.lang.ExceptionInInitializerError: null

Hey there.

  • What version of SonarQube are yousing?
  • Can you provide the full error stacktrace?