Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with the latest SonarQube versions #29

Closed
leonardomerlin opened this issue Oct 21, 2021 · 0 comments · Fixed by #30
Closed

Not working with the latest SonarQube versions #29

leonardomerlin opened this issue Oct 21, 2021 · 0 comments · Fixed by #30
Assignees

Comments

@leonardomerlin
Copy link
Contributor

Issue and Steps to Reproduce

If you try to run with the latest version (ie 9.1), then you will face the following error:

java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation 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

Proposed solution

The issue seems to be with the Java version from the docker image used. Class file version 52 is for Java 8. And Class file version 55 needs Java 11.

Drop the unofficial docker image and use to official one: https://hub.docker.com/r/sonarsource/sonar-scanner-cli

Specifications

  • Version: kitabisa/sonarqube-action@v1.1.0
INFO: SonarQube Scanner 4.0.0.1744
INFO: Java 1.8.0_181 Oracle Corporation (64-bit)
INFO: Linux 5.8.0-1042-azure amd64
INFO: User cache: /root/.sonar/cache
INFO: SonarQube server 9.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants