Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saty2tech opened this issue Oct 2, 2023 · 0 comments

Comments

@saty2tech
Copy link

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:

<serenity.version>4.0.0</serenity.version>
<serenity.cucumber.version>4.0.0</serenity.cucumber.version>

org.codehaus.groovy
groovy-all
2.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant