- ALM used: Azure DevOps
- CI system used: Azure Pipelines
- Scanner command used when applicable: gradle sonar -Dsonar.gradle.skipCompile=true -Dsonar.verbose=true --stacktrace --debug
- Languages of the repository: Java (Gradle)
- Only if the SonarCloud project is public, the URL: N/A
- Error observed: java.lang.ExceptionInInitializerError (no error message): Unable to make field protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h accessible: module java.base does not “opens java.lang.reflect” to unnamed module @7ff78b3c
- Steps to reproduce: Run the Sonar Scanning for Gradle with Java 17 runtime.
- Potential workaround: No work around found as of now. Please suggest (if any)
Hey there.
It’s not clear to me at what point in the logs you’re getting this message. Could you share more complete logs (gradle sonar -Dsonar.verbose=true)
We’re getting the error reported in the initialization phase itself which you can see in the below debug logs (gradle sonar -Dsonar.verbose=true):
Logs-for-Gradle-Project-SonarScanner-Issue-Post-Upgrading-to-Java17Runtime-10-Nov2023.txt (6.9 KB)
Please let me know if anything else is needed for the same.