sonar-xsl / Sonar-XSL-Plugin

A Schematron-based SonarQube plugin for XSL code quality measurement.
http://www.sonarxsl.org/
Apache License 2.0
5 stars 3 forks source link

build failure after adding xsl jar #23

Closed vadathyas closed 3 years ago

vadathyas commented 3 years ago

Hi ,

Build the xsl jar from this code and scan using sonarqube. I am getting below error and sonar scan run analyzed task is failing

2021-09-15T17:14:48.9180729Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl:
  FODC0002: Document has been marked not available:
  jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl
2021-09-15T17:14:48.9182229Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl:

...Same waring repeated numerous times
...
jimetevenard commented 3 years ago

Hi, there is an issue open about these « Document has been marked not available » warnings (issue #5)

However, this point does not prevent analysis from working.
Your failure may thus not be related to these warning messages.

Could you join a full log file of the failure case?

vadathyas commented 3 years ago

Comment edited by @jimetevenard :
I've add a folding tag to your comment to display this long log as a collapsed block, and did some formating.

Hi @jimetevenard :

our build analyzed has failed due to below error.

INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 10.956s
INFO: Final Memory: 9M/34M
INFO: ------------------------------------------------------------------------
2021-09-15T20:09:07.2185465Z ##[error]ERROR: Error during SonarScanner execution
ERROR: Language of file 'DataPower/external/mdev/drouter/local/MiHUB/CallAuditLogOnSuccessEvent.xsl' can not be decided as the file matches patterns of both sonar.lang.patterns.xslt : **/*.xsl and sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
See full logs (click to exepand)

```` 2021-09-15T20:08:55.8622186Z ##[section]Starting: SonarQubeAnalyze 2021-09-15T20:08:55.8630056Z ============================================================================== 2021-09-15T20:08:55.8630398Z Task : Run Code Analysis 2021-09-15T20:08:55.8630728Z Description : Run scanner and upload the results to the SonarQube server. 2021-09-15T20:08:55.8631005Z Version : 4.22.0 2021-09-15T20:08:55.8631240Z Author : sonarsource 2021-09-15T20:08:55.8631800Z Help : Version: 4.22.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build. 2021-09-15T20:08:55.8632768Z ============================================================================== 2021-09-15T20:08:56.0335985Z [command]/data/hub/PrdAgentA/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.22.0/sonar-scanner/bin/sonar-scanner 2021-09-15T20:08:56.2440258Z INFO: Scanner configuration file: /data/hub/PrdAgentA/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.22.0/sonar-scanner/conf/sonar-scanner.properties 2021-09-15T20:08:56.2445356Z INFO: Project root configuration file: /data/hub/PrdAgentA/_work/9/s/DataPower/sonar-dp.properties 2021-09-15T20:08:56.2853020Z INFO: SonarScanner 4.6.2.2472 2021-09-15T20:08:56.2854192Z INFO: Java 1.8.0_211 IBM Corporation (64-bit) 2021-09-15T20:08:56.2854648Z INFO: Linux 3.10.0-1160.15.2.el7.x86_64 amd64 2021-09-15T20:08:56.8385095Z INFO: User cache: /home/mqm/.sonar/cache 2021-09-15T20:08:56.9492072Z INFO: Scanner configuration file: /data/hub/PrdAgentA/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.22.0/sonar-scanner/conf/sonar-scanner.properties 2021-09-15T20:08:56.9496387Z INFO: Project root configuration file: /data/hub/PrdAgentA/_work/9/s/DataPower/sonar-dp.properties 2021-09-15T20:08:56.9546173Z INFO: Analyzing on SonarQube server 8.9.0 2021-09-15T20:08:56.9550432Z INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) 2021-09-15T20:08:57.1609039Z WARN: SonarScanner will require Java 11 to run, starting in SonarQube 9.x 2021-09-15T20:08:57.3648688Z INFO: Load global settings 2021-09-15T20:08:57.5757695Z INFO: Load global settings (done) | time=211ms 2021-09-15T20:08:57.5824391Z INFO: Server id: 60C28E54-AXoQoxbs-MC5GABbOXjp 2021-09-15T20:08:57.5861418Z INFO: User cache: /home/mqm/.sonar/cache 2021-09-15T20:08:57.5901234Z INFO: Load/download plugins 2021-09-15T20:08:57.5901738Z INFO: Load plugins index 2021-09-15T20:08:57.6607126Z INFO: Load plugins index (done) | time=71ms 2021-09-15T20:08:57.7857529Z INFO: Load/download plugins (done) | time=196ms 2021-09-15T20:08:57.9753240Z INFO: Loaded core extensions: developer-scanner 2021-09-15T20:09:00.2259916Z ##[error]Error SXXP0003: Error reported by XML parser: Premature end of file. 2021-09-15T20:09:00.2270888Z Error 2021-09-15T20:09:00.2271211Z SXXP0003: Error reported by XML parser: Premature end of file. 2021-09-15T20:09:00.2273686Z ##[error]Error Error reported by XML parser processing jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/: Premature end of file. 2021-09-15T20:09:00.2274730Z Error 2021-09-15T20:09:00.2274926Z Error reported by XML parser processing 2021-09-15T20:09:00.2275802Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/: Premature end of file. 2021-09-15T20:09:00.2277769Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2279288Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2280185Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2281082Z 2021-09-15T20:09:00.2282881Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2293074Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2293633Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2294710Z 2021-09-15T20:09:00.2296405Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2297945Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2298405Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2299208Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2301152Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2302895Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2303341Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2304207Z 2021-09-15T20:09:00.2305855Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2307370Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2307820Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2308618Z 2021-09-15T20:09:00.2310272Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2311772Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2312230Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2313179Z 2021-09-15T20:09:00.2314846Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2316327Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2317617Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2318725Z 2021-09-15T20:09:00.2320446Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2322190Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2322761Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2323607Z 2021-09-15T20:09:00.2325311Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2326824Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2327270Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2328079Z 2021-09-15T20:09:00.2329712Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2331222Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2331677Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2332578Z 2021-09-15T20:09:00.2334300Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2335861Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2336319Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2337416Z 2021-09-15T20:09:00.2339239Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2340805Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2341258Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2342049Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2344203Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2345966Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2346418Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2347229Z 2021-09-15T20:09:00.2348943Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2350651Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2351103Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2351913Z 2021-09-15T20:09:00.2353665Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2355222Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2355668Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2356484Z 2021-09-15T20:09:00.2358123Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2359857Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2360302Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2361127Z 2021-09-15T20:09:00.2362906Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2364598Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2365049Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2365873Z 2021-09-15T20:09:00.2367509Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2369025Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2369454Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2370261Z 2021-09-15T20:09:00.2383088Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2384821Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2385284Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2389155Z 2021-09-15T20:09:00.2390915Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2392858Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2393327Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2394140Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2396110Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2397775Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2398216Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2399041Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2401005Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2402642Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2403082Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2403956Z 2021-09-15T20:09:00.2405619Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2407153Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2407610Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2408403Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2410448Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2411977Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2412432Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2413335Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2426564Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2428145Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2428760Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2439862Z ##[error]Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: FODC0002: Document has been marked not available: jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl No more warnings will be displayed 2021-09-15T20:09:00.2441107Z 2021-09-15T20:09:00.2441698Z Warning at char 9 in xsl:value-of/@select on line 2221 column 96 of iso_schematron_skeleton_for_saxon.xsl: 2021-09-15T20:09:00.2442146Z FODC0002: Document has been marked not available: 2021-09-15T20:09:00.2443069Z jar:file:/home/mqm/.sonar/cache/63177dd3577e4ad6d70f1860b30e07cc/sonar-xsl-plugin.jar_unzip/META-INF/lib/sonar-schematron-reactor-1.0.0-SNAPSHOT.jar!/schematron-code/iso_schematron_skeleton_for_saxon.xsl 2021-09-15T20:09:00.2443590Z No more warnings will be displayed 2021-09-15T20:09:00.6169722Z INFO: JavaScript/TypeScript frontend is enabled 2021-09-15T20:09:00.8051035Z INFO: Process project properties 2021-09-15T20:09:00.8054508Z INFO: Process project properties (done) | time=1ms 2021-09-15T20:09:00.8056145Z INFO: Execute project builders 2021-09-15T20:09:00.8077225Z INFO: Execute project builders (done) | time=2ms 2021-09-15T20:09:00.8092785Z INFO: Project key: StrategicServicesHUB_GatewayAPIs 2021-09-15T20:09:00.8093348Z INFO: Base dir: /data/hub/PrdAgentA/_work/9/s 2021-09-15T20:09:00.8093725Z INFO: Working dir: /data/hub/PrdAgentA/_work/9/s/.scannerwork 2021-09-15T20:09:00.9630920Z INFO: Load project settings for component key: 'StrategicServicesHUB_GatewayAPIs' 2021-09-15T20:09:01.0165551Z INFO: Load project settings for component key: 'StrategicServicesHUB_GatewayAPIs' (done) | time=54ms 2021-09-15T20:09:01.0308157Z INFO: Load project branches 2021-09-15T20:09:01.0815606Z INFO: Load project branches (done) | time=51ms 2021-09-15T20:09:01.0832259Z INFO: Load project pull requests 2021-09-15T20:09:01.1124442Z INFO: Load project pull requests (done) | time=29ms 2021-09-15T20:09:01.1124752Z INFO: Load branch configuration 2021-09-15T20:09:01.1133062Z INFO: Found manual configuration of branch/PR analysis. Skipping automatic configuration. 2021-09-15T20:09:01.1148682Z INFO: Load branch configuration (done) | time=2ms 2021-09-15T20:09:01.1603585Z INFO: Auto-configuring with CI 'Azure DevOps' 2021-09-15T20:09:01.1615323Z INFO: Load quality profiles 2021-09-15T20:09:01.5922538Z INFO: Load quality profiles (done) | time=430ms 2021-09-15T20:09:01.5962436Z INFO: Auto-configuring with CI 'Azure DevOps' 2021-09-15T20:09:01.5997587Z INFO: Load active rules 2021-09-15T20:09:06.3261578Z INFO: Load active rules (done) | time=4726ms 2021-09-15T20:09:06.3575895Z INFO: Branch name: releases/release-oct-21 2021-09-15T20:09:06.4150768Z INFO: Indexing files... 2021-09-15T20:09:06.4151158Z INFO: Project configuration: 2021-09-15T20:09:07.1850725Z INFO: ------------------------------------------------------------------------ 2021-09-15T20:09:07.1860567Z INFO: EXECUTION FAILURE 2021-09-15T20:09:07.1861328Z INFO: ------------------------------------------------------------------------ 2021-09-15T20:09:07.1861621Z INFO: Total time: 10.956s 2021-09-15T20:09:07.2181238Z INFO: Final Memory: 9M/34M 2021-09-15T20:09:07.2182230Z INFO: ------------------------------------------------------------------------ 2021-09-15T20:09:07.2185465Z ##[error]ERROR: Error during SonarScanner execution ERROR: Language of file 'DataPower/external/mdev/drouter/local/MiHUB/CallAuditLogOnSuccessEvent.xsl' can not be decided as the file matches patterns of both sonar.lang.patterns.xslt : **/*.xsl and sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl ERROR: ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. 2021-09-15T20:09:07.2187780Z ERROR: Error during SonarScanner execution 2021-09-15T20:09:07.2189041Z ERROR: Language of file 'DataPower/external/mdev/drouter/local/MiHUB/CallAuditLogOnSuccessEvent.xsl' can not be decided as the file matches patterns of both sonar.lang.patterns.xslt : **/*.xsl and sonar.lang.patterns.xml : **/*.xml,**/*.xsd,**/*.xsl 2021-09-15T20:09:07.2189670Z ERROR: 2021-09-15T20:09:07.2190120Z ERROR: Re-run SonarScanner using the -X switch to enable full debug logging. 2021-09-15T20:09:07.2417360Z ##[error]The process '/data/hub/PrdAgentA/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.22.0/sonar-scanner/bin/sonar-scanner' failed with exit code 2 2021-09-15T20:09:07.2448169Z ##[section]Finishing: SonarQubeAnalyze` ````

vadathyas commented 3 years ago

@jimetevenard we tested in local with .xsl jar we saw build is failing due the below error.

xsl error

jimetevenard commented 3 years ago

Hi,

The following error

ERROR: Language of file 'DataPower/external/mdev/drouter/local/MiHUB/CallAuditLogOnSuccessEvent.xsl' can not be decided as the file matches patterns of both sonar.lang.patterns.xslt : /.xsl and sonar.lang.patterns.xml : /.xml,/.xsd,/.xsl

means that there is a conflict in your SonarQube instance, between this Sonar XSL plugin and the native XML plugin of SonarQube regarding files ending with .xsl**

To fix this, you have to go the the settings of SonarQube (go to Administration > in tab Configuration select General Settings > go to the Languages tab on the left > select the XML option) and then remove the .xsl entry, like in the screenshot below.

This will exclude the *.xsl** file from the scope of the native XML plugin, and fix the conflict.

Screenshot_10

vadathyas commented 3 years ago

Thank you so much for your response. That really solved my issue. Appreciate your help.