Open tommywo opened 5 years ago
is this issue fixed?
We have the exact same error. We are using SonarQube 9.9.2. Have you ever found a solution for this error ?
We have the exact same error. We are using SonarQube 10.3. it would be great to be able to use this :-)
This is a old post, but I did find a way to fix the issue in sonarQube v10.5
Log into the sonarQube web interface. Go to Administration in the top navigation bar. In General Settings, select ColdFusion in the left navigation bar. In the Java executable options field add the following: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
. Select the Save button.
@mrhcon Thanks for sharing this ! We still use version 9.9.2, bit it's something worth a try in our lab environment.
The ultimate issue is that the plugin is java v8 and sonarQube is java v17. Starting from Java 9, the introduction of the Java Platform Module System (JPMS) added more granularity to the visibility and accessibility of classes and members. This system is designed to encapsulate Java's internal APIs and prevent unintended usage, which can lead to more robust and secure applications. However, this also means that some techniques that worked in Java 8 and earlier might encounter access restrictions in Java 9 and later versions. What I proposed was ONLY a workaround not permanent solution.
@mrhcon We tried it and even if the error is still present in the pipeline task, the analysis completes and we get results. It is indeed a workaround, but it helps us. Thanks again !