Keyword runFeatureFile was failed (Root cause: java.lang.NoClassDefFoundError: Boolean)

Same for me.
On both my PCs 6.1.1 broken.
On MacOS 6.1.0 OK
Docker image OK.

Hi @anhphong1110, @Mateusz,

Please try to delete bin folder then open your project again.

Thanks

1 Like

Goodmorning same issue here, after installing 6.2.0 release

issue appears in all
Cucumber files and wsdl files

Tried to delete bin folder but, issue stays the same

  1. deleted bin in 6.1.1 on PC and restarted --> “Problems” tab was showing issues related to workaround i did for Dynamic CucumberOptions Tags (using tags for cucumber)

  2. removed workaround, upgraded to 6.2.0, deleted ‘bin’ & ‘Libs’, restarted Katalon and executed feature file directly (no tags whatsoever): exception same as rodevries’:

         Verification FAILED.
     Reason:
     com.kms.katalon.core.exception.StepFailedException: Keyword runFeatureFile was failed (Root cause: cucumber.runtime.CucumberException: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
     	at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:110)
     	at cucumber.runtime.formatter.PluginFactory.instantiate(PluginFactory.java:91)
     	at cucumber.runtime.formatter.PluginFactory.create(PluginFactory.java:76)
     	at cucumber.runtime.RuntimeOptions.getPlugins(RuntimeOptions.java:317)
     	at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:306)
     	at cucumber.runtime.Runtime.run(Runtime.java:97)
     	at cucumber.api.cli.Main.run(Main.java:35)
     	at cucumber.api.cli.Main$run.call(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
     	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)
     	at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:101)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)
     	at WSVerification1560349031678.run(WSVerification1560349031678:2)
     	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
     	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
     	at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:146)
     	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:140)
     	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:123)
     	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:115)
     	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:103)
     	at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:144)
     	at com.kms.katalon.core.main.TestCaseMain$runFeatureFile$0.call(Unknown Source)
     	at TempTempCase1560349024906.run(TempTempCase1560349024906.groovy:21)
     Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
     	at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source)
     	at cucumber.runtime.formatter.JUnitFormatter.<init>(JUnitFormatter.java:88)
     	at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:104)
     	... 26 more
     Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
     	... 29 more
     )
     	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)
     	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy)
     	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:70)
     	at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:101)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)
     	at WSVerification1560349031678.run(WSVerification1560349031678:2)
     	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
     	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
     	at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:146)
     	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:140)
     	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:123)
     	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:115)
     	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:103)
     	at com.kms.katalon.core.main.TestCaseMain.runFeatureFile(TestCaseMain.java:144)
     	at com.kms.katalon.core.main.TestCaseMain$runFeatureFile$0.call(Unknown Source)
     	at TempTempCase1560349024906.run(TempTempCase1560349024906.groovy:21)
     Caused by: cucumber.runtime.CucumberException: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
     	at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:110)
     	at cucumber.runtime.formatter.PluginFactory.instantiate(PluginFactory.java:91)
     	at cucumber.runtime.formatter.PluginFactory.create(PluginFactory.java:76)
     	at cucumber.runtime.RuntimeOptions.getPlugins(RuntimeOptions.java:317)
     	at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:306)
     	at cucumber.runtime.Runtime.run(Runtime.java:97)
     	at cucumber.api.cli.Main.run(Main.java:35)
     	at cucumber.api.cli.Main$run.call(Unknown Source)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)
     	at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
     	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)
     	... 16 more
     Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
     	at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source)
     	at cucumber.runtime.formatter.JUnitFormatter.<init>(JUnitFormatter.java:88)
     	at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:104)
     	... 26 more
     Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
     	... 29 more

I get the same with the Docker Image on CI

  • xvfb-run -s ‘-screen 0 1024x768x24’ /opt/katalonstudio/katalon -browserType=Chrome -executionProfile=citesting -retry=0 -statusDelay=15 ‘-testSuitePath=Test Suites/ALLBDDTests’ -runMode=console -reportFolder=/builds/merkaba-development/vmsoverlay/KatalonWebTests/report -projectPath=/tmp/katalon_execute/project
    Katalon workspace folder is set to default location: /opt/katalonstudio/config
    Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
    170 2.4.7.xx-201611170128-e46 = ACTIVE

INFO: Katalon Version: 6.2.0
INFO: Command-line arguments: -browserType=Chrome -executionProfile=citesting -retry=0 -statusDelay=15 -testSuitePath=Test Suites/ALLBDDTests -runMode=console -reportFolder=/builds/merkaba-development/vmsoverlay/KatalonWebTests/report -projectPath=/tmp/katalon_execute/project
INFO: User working dir: /tmp/katalon_execute/workspace
INFO: User home: /root
INFO: Java vendor: Oracle Corporation
INFO: Java version: 1.8.0_191
INFO: Local OS: Linux 64bit
INFO: CPU load: 97%
INFO: Total memory: 3694 MB
INFO: Free memory: 220 MB

Project path is a folder.
Examine folder ‘settings’.
Examine folder ‘Test Cases’.
Examine folder ‘Scripts’.
Examine file ‘.classpath’.
Examine file ‘console.properties’.
Examine folder ‘Keywords’.
Examine folder ‘Profiles’.
Examine folder ‘Include’.
Examine file ‘KatalonWebTests.prj’.
Found project file ‘/tmp/katalon_execute/project/KatalonWebTests.prj’.
Examine folder ‘Object Repository’.
Examine folder ‘Test Suites’.
Opening project file: /tmp/katalon_execute/project/KatalonWebTests.prj
Parsing custom keywords in Plugins folder…
Generating global variables…
/%tmp%katalon_execute%project%KatalonWebTests.prj/Keywords/global/globalKeywords.groovy: 21 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%KatalonWebTests.prj/Include/scripts/groovy/addfloorplan/AddFloorplanSteps.groovy: 22 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%KatalonWebTests.prj/Include/scripts/groovy/addserver/AddServerSteps.groovy: 21 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%KatalonWebTests.prj/Include/scripts/groovy/adduser/AddUserSteps.groovy: 21 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%KatalonWebTests.prj/Include/scripts/groovy/login/LoginSteps.groovy: 21 Groovy:unable to resolve class internal.GlobalVariable
/%tmp%katalon_execute%project%KatalonWebTests.prj/Include/scripts/groovy/register/RegisterSteps.groovy: 21 Groovy:unable to resolve class internal.GlobalVariable
Parsing custom keywords…
Project ‘KatalonWebTests’ opened
chromedriver is located at default location: /opt/katalonstudio/configuration/resources/drivers/chromedriver_linux64/chromedriver. In case your browser is updated to a newer version, please use this command to update chromdriver: --config -webui.autoUpdateDrivers=true


Test Suites/ALLBDDTests - Chrome - 20190614_081657…0/4(0%)

2019-06-14 08:17:01.065 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/ALLBDDTests
2019-06-14 08:17:01.163 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = root - runner-fa6cab46-project-12816440-concurrent-0
2019-06-14 08:17:01.165 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Linux 64bit
2019-06-14 08:17:01.166 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 172.17.0.5
2019-06-14 08:17:01.202 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 6.2.0.1
2019-06-14 08:17:01.834 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-06-14 08:17:01.837 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/AddServerFeatures
2019-06-14 08:17:02.549 DEBUG testcase.AddServerFeatures - 1: runFeatureFile(“Include/features/AddServer.feature”)
2019-06-14 08:17:02.644 INFO c.k.k.c.c.k.CucumberBuiltinKeywords - Starting run keyword runFeatureFile: ‘Include/features/AddServer.feature’ and extract report to folder: ‘/tmp/katalon_execute/project/Reports/ALLBDDTests/20190614_081657/cucumber_report/1560500222624’…
2019-06-14 08:17:03.507 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Keyword runFeatureFile was failed (Root cause: cucumber.runtime.CucumberException: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:110)
at cucumber.runtime.formatter.PluginFactory.instantiate(PluginFactory.java:91)
at cucumber.runtime.formatter.PluginFactory.create(PluginFactory.java:76)
at cucumber.runtime.RuntimeOptions.getPlugins(RuntimeOptions.java:317)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:306)
at cucumber.runtime.Runtime.run(Runtime.java:97)
at cucumber.api.cli.Main.run(Main.java:35)
at cucumber.api.cli.Main$run.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)
at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:101)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)
at AddServerFeatures.run(AddServerFeatures:16)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:133)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1560500217606.run(TempTestSuite1560500217606.groovy:35)
Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source)
at cucumber.runtime.formatter.JUnitFormatter.(JUnitFormatter.java:88)
at cucumber.runtime.formatter.PluginFactory.newInstance(PluginFactory.java:104)
at cucumber.runtime.formatter.PluginFactory.instantiate(PluginFactory.java:91)
at cucumber.runtime.formatter.PluginFactory.create(PluginFactory.java:76)
at cucumber.runtime.RuntimeOptions.getPlugins(RuntimeOptions.java:317)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:306)
at cucumber.runtime.Runtime.run(Runtime.java:97)
at cucumber.api.cli.Main.run(Main.java:35)
at cucumber.api.cli.Main$run.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy:76)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$_runFeatureFile_closure1.doCall(CucumberBuiltinKeywords.groovy)
at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:68)
at com.kms.katalon.core.keyword.internal.KeywordMain$runKeyword.call(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:46)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile$0.callStatic(Unknown Source)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords.runFeatureFile(CucumberBuiltinKeywords.groovy:101)
at com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords$runFeatureFile.call(Unknown Source)
at Script1560446897555.run(Script1560446897555.groovy:16)
… 13 more
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
… 32 more
)

1 Like

same issue for me also.

Glad I found this thread. I just started with BDD and followed the same document samples as the original poster, and am getting the same runFeatureFile errors in v6.2.0.

Hi @rodevries, @Mateusz, @gideon, @waiki, @hhomberg

This bug will be resolved in v6.2.1 ASAP.

java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal  

Thanks for your report.

2 Likes

Hi @all,

KS v6.2.1 has been released, please check for update.

Thanks

Seems to have resolved the issue. Can you also push 6.2.1 to the docker hub?

It is not yet resolved in 6.3.3

i just tried 6.3.3. had the same issue again, deleting libs/bin resolved it for me.

I am getting error "com.kms.katalon.core.exception.StepFailedException: Keyword runFeatureFile was failed (Root cause: java.lang.NoClassDefFoundError: WebElement " error when I am running my feature file.

I created the test on my local Mac laptop where everything works fine. I moved the code to git and then cloned the project into my remote Windows PC and running the project from there. I get the error " com.kms.katalon.core.exception.StepFailedException: Keyword runFeatureFile was failed (Root cause: java.lang.NoClassDefFoundError: WebElement"

If I run my test as a test case instead of a BDD feature file, it works fine. Login and logout are working good.

The problem seems to be with BDD feature file.

Could someone help me on this?

I am also facing same problem but case is reversed. I have created BDD feature file implementation On WINDOWS machine. Everything is working as expected. Checked-in code to git. Now I have cloned project on MAC and somehow it is giving same error. Please help. There is something wrong as far as compatibility is concerned

I suppose, you have the bin directory is checked-in the Git repository. Right? The bin directory should not be shared by different platforms (Windows, Mac, Linux). If you have bin directory on your Mac, why not delete the <projectDir>/bin directory, close & restart KS.

Are you aware that some directories / files need to be .gitingnored?

See also

1 Like

kazurayam Thanks for the update. It has worked for me after deletion of Bin folder. Appreciate your help.

I have faced the same issue.

Deleting the bin folder worked for me