java.lang.IllegalArgumentException: Unsupported class file major version 55

Hi Team ,
using below versions
–sonarqube * Community Edition Version 7.2 (build 13530) LGPL v3

–sonar-scanner --version
INFO: Scanner configuration file: E:\sonarscanner\sonar-scanner-cli-4.4.0.2170-windows\sonar-scanner-4.4.0.2170-windows\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.4.0.2170
INFO: Java 11.0.3 AdoptOpenJDK (64-bit)
INFO: Windows 10 10.0 amd64
INFO: SONAR_SCANNER_OPTS="-Djava.net.useSystemProxies=true"

C:\Users\jenkins>java -version
java version “1.8.0_144”
Java™ SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot™ 64-Bit Server VM (build 25.144-b01, mixed mode)

JavaProject : compiled java project using gradle build script.
followed by executing the sonar-scanner.

Detailed log has been attached .
.sonarScan.log (91.5 KB)

Please help in resolving the issue

Regards,
LnT

Hi,

I don’t think SonarQube 7.2 supported Java 11. Since that version is past EOL anyway, you should upgrade at your earliest convenience to 7.9.3, the current LTS, and then on to 8.4.1, the current version. Then you’ll be able to analyze using Java 11.

 
HTH,
Ann

Hi @ganncamp, Thanks to your reply.

Let me paraphrase my setup.
I used
SonarQube 7.2.
sonar-scanner-cli-4.4.0.2170
sonar-java-plugin-5.6.0.15032.jar in E:\sonarqube-7.2\extensions\plugins
& jdk 1.8 has been used to compile the source code , because source code is developed in Java 8.

could you please highlight me , where java 11 comes in to the picture ?
Correct me - if my understanding is wrong.
Regards,
LnT

Hi LnT,

The error you list in your title is about “major version 55” being unsupported. The internet tells me that corresponds to Java 11. Somehow, whether or not you’re compiling with Java 8 or just to Java 8, you appear to be analyzing with Java 11.

 
Ann

Hi @ganncamp

Issue has been resolved by upgrading the sonarjava plugin
from sonar-java-plugin-5.6.0.15032.jar to sonar-java-plugin-5.8.0.15699.jar

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.