Running a Sonar scan of Java code in JDK 17 via the maven plugin causes the following error. I’ve omitted most of the stack trace for brevity but can provide more of it if needed.
SonarQube version: Data Center 9.2.4
Maven Plugin version: 3.9.1.2184
Java version: 17
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project platform-locator: Error initializing Manifold: Cannot invoke "manifold.util.ReflectUtil$MethodRef.invoke(Object, Object[])" because "addExportsOrOpens" is null -> [Help 1]
...
Caused by: java.lang.NullPointerException: Cannot invoke "manifold.util.ReflectUtil$MethodRef.invoke(Object, Object[])" because "addExportsOrOpens" is null
at manifold.util.NecessaryEvilUtil.openJavaBase (NecessaryEvilUtil.java:119)
at manifold.util.NecessaryEvilUtil.bypassJava9Security (NecessaryEvilUtil.java:68)
Is anyone else encountering something similar?