serenity-bdd / serenity-maven-plugin

19 stars 21 forks source link

java.lang.NoSuchMethodError: groovy.xml.XmlUtil.setFeatureQuietly(Ljavax/xml/parsers/SAXParserFactory;Ljava/lang/String;Z)V #90

Open saty2tech opened 11 months ago

saty2tech commented 11 months ago

Hi I recently updated serenity BDD to the version4 and java11, not sure why it is causing the below issues, can you please let me know what is the issue and how to fix

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/C:/Users/SBasavego/.m2/repository/org/codehaus/groovy/groovy/2.4.3/groovy-2.4.3.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass$3$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

java.lang.NoSuchMethodError: groovy.xml.XmlUtil.setFeatureQuietly(Ljavax/xml/parsers/SAXParserFactory;Ljava/lang/String;Z)V

[ERROR] 2023-10-02 16:54:22,125 - groovy.xml.XmlUtil.setFeatureQuietly(Ljavax/xml/parsers/SAXParserFactory;Ljava/lang/String;Z)V [ERROR] 2023-10-02 16:54:22,426 - Tag provider net.thucydides.model.requirements.TestOutcomeRequirementsTagProvider@55736cfe failure java.lang.NoSuchMethodError: com.google.common.base.Splitter.splitToStream(Ljava/lang/CharSequence;)Ljava/util/stream/Stream;

my POM file:

4.0.0 4.0.0 org.codehaus.groovy groovy-all 2.4.3