After the upgrade of SonarQube 7.9.1 build is failing on Run Code Analysis

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

After the upgrade of SonarQube 7.9.1 build is failing on Run Code Analysis with ERROR:

ERROR: Error during SonarQube Scanner execution
java.lang.RuntimeException: C.A.B: Unions are only allowed over node-sets
   at com.sonar.sslr.A.A.A.A(Unknown Source)
   at com.sonar.oracle.C.B.D.D(Unknown Source)
   at com.sonar.oracle.Q.A(Unknown Source)
at com.sonar.oracle.S.A(Unknown Source)
   at com.sonar.oracle.S.A(Unknown Source)
   at com.sonar.plsql.plugin.J.execute(Unknown Source)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
   at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
   at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
   at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
   at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
   at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
   at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
   at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:400)
   at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:395)
6 more errors. Click on expand view in the context menu to view complete logs.

How can we resolve the issue?

Sorry for the late reply.

I’m not able to reproduce the error but I suspect it’s triggered by an XPath rule.
Did you set up XPath-based custom rules for PL/SQL? Could you share the XPath expressions?
Thanks.

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