Hi there,
I am running the Sonaqube plugin in Gradle on a Java project, and I'm encountering the following error:
Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor - on file C:\development\code\git_projects\bankmobile\disbursement_services\one_disburse_backup\one-disburse\lib\src\main\java\com\higherone\fis\connectware\client\services\ConnectwareClient.java, To help improve SonarJava, please report this problem to SonarSource : see
https://www.sonarqube.org/community/java.nio.file.InvalidPathException: Illegal char <?> at index 0: ? extends CoreBankingServiceException.class
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
at org.sonar.java.bytecode.loader.FileSystemLoader.findResource(FileSystemLoader.java:47)
at org.sonar.java.bytecode.loader.SquidClassLoader.findResource(SquidClassLoader.java:83)
at java.lang.ClassLoader.getResource(ClassLoader.java:1096)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1307)
at org.sonar.java.bytecode.loader.SquidClassLoader.getBytesForClass(SquidClassLoader.java:112)
... etc.
This is the only area of the source file that this can be referring to:
Class<? extends CoreBankingServiceException> exceptionClass = null;
try {
exceptionClass = (Class<? extends CoreBankingServiceException>) Class.forName(exceptionClassName);
} catch (ClassNotFoundException e) {
logger.error("Could not get class for ["+exceptionClassName+"]");
}
Any ideas on what might be causing this error?
Thanks!
-Ed