Hi Team,
Need your help for below issue . we upgraded sonarqube server but it not support from client scanner. Please help us to resolving issue ASAP
upgrading from 9.9.1 to 10.5
System information Operating system :- Redhat
Java version :- 17
Database provider/version :- Mssql 2018 )
- Facing issue :- azure devops build pipeline we use SonarQube task and
during SonarQube scanner we getting below Error on azure devops Build agent
[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
[error]java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the
Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime
(class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
[error]at java.base/java.lang.ClassLoader.defineClass1(Native Method)
[error]Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main"
Error: A JNI error has occurred, please check your installation and try again
[error]java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
java.lang.IllegalStateException: Unable to load components interface org.sonar.api.batch.sensor.Sensor
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Unable to load components interface org.sonar.api.batch.sensor.Sensor
Thanks