Issue with plugin

Hello everyone!

Maybe someone can help, or at least point where to look at…

We are trying to scan our XSLT stylesheets using Sonar-XSL-Plugin, however when activating schematron rules, Sonar-scanner throws following error:

ERROR: Error during SonarScanner execution java.lang.ClassCastException: java.lang.String incompatible with java.lang.Boolean at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.reset(XMLEntityManager.java:1547) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XMLStreamReaderImpl.java:284) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLStreamReaderImpl.java:260)

SonarQube * 9.2.4 (build 50792)
openjdk 11.0.13
Postgres 13.5
Plugin build from sources based on GitHub - sonar-xsl/Sonar-XSL-Plugin: A Schematron-based SonarQube plugin for XSL code quality measurement.

Hey @Svenelele

It looks like you’ve raised an issue on Sonar-XSL-Plugin which was the right thing to do, as it is a community-supported plugin not developed, maintained or supported by SonarSource.

I wouldn’t be surprised if it’s an issue with the version of Java being used to run the analysis. Perhaps the maintainer intended Java 8 be used as the scanner runtime when it was supported (as of v8.9 LTS, Java 11 is required)

Hello @Colin

Thanks for reply! Might be, I will try other combinations as well. Hope that the maintainer(s) respond…