Issue: The customer had upgraded his Katalon version to 7.9.1. After that, he was not able to run his BDD Cucumber Tests to run the feature file.
021-04-30 11:54:49.119 INFO c.k.k.c.c.k.CucumberBuiltinKeywords - Starting run keyword runFeatureFile: 'Include/features/Internal Users/Manage/ManageAuthorisation.feature' and extract report to folder: 'C:\Users\RINNAS~1\AppData\Local\Temp\Katalon\Include\features\Internal Users\Manage\ManageAuthorisation.feature\20210430_115443/cucumber_report/1619780089034'...
2021-04-30 11:54:57.314 ERROR c.k.k.core.keyword.internal.KeywordMain - ❌ Keyword runFeatureFile was failed (Root cause: cucumber.runtime.CucumberException: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xerces.dom.NodeImpl.getChildNodes()Lorg/w3c/dom/NodeList;" the class loader (instance of org/codehaus/groovy/tools/RootLoader) of the current class, org/apache/xerces/dom/NodeImpl, and the class loader (instance of <bootloader>) for interface org/w3c/dom/Node have different Class objects for the type org/w3c/dom/NodeList used in the signature
at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:110)
Solution: remove the xml-apis-1.4.01.jar
and xercesImpl-2.5.0.jar
in the Drivers folder (inside your project).
If facing the message:
Caught: java.lang.IncompatibleClassChangeError: Class org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy does not implement the requested interface org.xml.sax.Locator
java.lang.IncompatibleClassChangeError: Class org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy does not implement the requested interface org.xml.sax.Locator
=> remove xmlParserAPIs-2.0.2.jar
in the folder as well.
Comments
0 comments
Please sign in to leave a comment.