Scan fails using JDK 17 and Maven plugin

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:
Java version: 17

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (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 (
    at manifold.util.NecessaryEvilUtil.bypassJava9Security (

Is anyone else encountering something similar?

Turns out this was related to a custom plugin that was installed on our Sonar instance. This can likely be disregarded.

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