#Cucumber #Selenium #Appium #RestAssured #Automation
#Error message #ExceptionInInitializerError #java.util.Comparator #Unabletomakefieldprivatefinal #info.cukes #io.cucumber #cucumber-java #cucumber-junit
Hi All,
In this video, we will see how to fix 'java.lang.ExceptionInInitializerError', 'Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @40f9161a' while using Cucumber with automation.
Error message in details:
java.lang.ExceptionInInitializerError
at cucumber.deps.com.thoughtworks.xstream.XStream.setupConverters(XStream.java:820)
at cucumber.deps.com.thoughtworks.xstream.XStream.(XStream.java:574)
at cucumber.deps.com.thoughtworks.xstream.XStream.(XStream.java:530)
at cucumber.runtime.xstream.LocalizedXStreams$LocalizedXStream.
.........
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @40f9161a
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
at cucumber.deps.com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:39)
.........
Playlists:
JavaScript Tutorial:
• Stay tune for JavaScript Tutorial !!!!!
Git tutorial:
• 7. How to initialize git repository |...
3rd party application installation:
• How to install postman in MAC
Spring boot beginners tutorial:
• 1. What is spring boot and how to wri...
Selenium Ruby Tutorial:
• 1. How to install firebug and firepat...
Ruby Tutorial:
• Ruby tutorial: Chapter 1 Top 5 reason...
Git Official website:
https://git-scm.com/
Git download:
https://git-scm.com/downloads
Git Documentation:
https://git-scm.com/doc
About this channel:
This is channel is dedicated for all those who want to learn new technologies by self learning. We keep on adding new content in this channel on a day to day basis and try to share our knowledge. Please feel free to drop your question to the email id mentioned below or comment on the video if you feel so.
facebook page:
/ teach-yourself-code-102086558276245
LinkedIn:
/ gagan-arora-pm
Email Id:
[email protected]
Disclaimer:
Videos are for educational purpose only, please use them wisely.
Video may or may not contain slight mistakes, if you feel something is not correct please do some research.
Through this video we are not forcing anything on anyone.