Error Message during scan states: Report to Sonar Community

Must-share information (formatted with Markdown):

  • SonarQube 8.9.7 LTS
  • Linux
  • scan a project
  • scan project

I am seeing several of these messages in the Jenkins pipeline for the SonarScan stage: The java program that is being scanned is the only change.

ERROR: Unable to run check class org.sonar.java.checks.VisibleForTestingUsageCheck - S5803 on file 'src/main/java/com/mapfre/acord/ComFiservSISBureauTerritory.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
org.eclipse.jdt.internal.compiler.problem.AbortCompilation: Pb(324) The type javax.xml.bind.annotation.XmlRootElement cannot be resolved. It is indirectly referenced from required .class files
	at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:162)
	at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:229)
	at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2624)
	at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.isClassPathCorrect(ProblemReporter.java:5081)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromCompoundName(LookupEnvironment.java:1791)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromConstantPoolName(LookupEnvironment.java:1821)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromConstantPoolName(LookupEnvironment.java:1829)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createAnnotation(BinaryTypeBinding.java:199)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createAnnotations(BinaryTypeBinding.java:208)
	at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:640)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:1055)
	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:1036)

Hi,

Could you upgrade to SonarQube 9.9, the LTS and current version, and see if this is replicable?

 
Thx,
Ann

Thank you! We have discovered the source code was recently restructured, and have sent the issue back to the development team. The folder the scan is looking for does not exist in the repo.

You can close the thread with no action.

-Pam