Error occured in jenkins pipeline while run the sonarqubescanner

Version 0.0.1-SNAPSHOT

I’ve tried run sonar scanner before deployment using jenkins pipeline. It fires error in sonar stage-

ERROR: Error during SonarQube Scanner execution
ERROR: null
ERROR: Caused by: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module 
ERROR: Caused by: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module 
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

Please verify and guide how to resolve this error.

Thanks
Shakthi

Hi Shakthi,

Welcome to the community!

Could we have the full analysis log, starting from the analysis command?

 
Thx,
Ann