Try generate cucumber report got error NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException

Hello here want to ask so i want to try generate this report using this in katalon studio GitHub - damianszczepanik/cucumber-reporting: HTML reports for Cucumber ,

As you guys know default ui report so basic and i just use community version and want to generate good report UI

but when implement that i got this error

`2023-12-17 20:02:22.739 INFO  c.k.katalon.core.main.TestCaseExecutor   - --------------------
2023-12-17 20:02:22.743 INFO  c.k.katalon.core.main.TestCaseExecutor   - START Test Cases/operations/generate_report
2023-12-17 20:02:23.495 DEBUG testcase.generate_report                 - 1: generateCucumberReport.generateCucumberReport()
2023-12-17 20:02:23.862 ERROR k.k.c.m.CustomKeywordDelegatingMetaClass - ❌ org/apache/commons/configuration/ConfigurationException
2023-12-17 20:02:23.868 ERROR c.k.katalon.core.main.TestCaseExecutor   - ❌ Test Cases/operations/generate_report FAILED.
Reason:
com.kms.katalon.core.exception.StepErrorException: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.throwError(CustomKeywordDelegatingMetaClass.java:101)
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:73)
	at generate_report.run(generate_report:20)
	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:448)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:128)
	at TempTestCase1702818136016.run(TempTestCase1702818136016.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
	at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:71)
	at generateCucumberReport.<init>(generateCucumberReport.groovy:33)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:51)
	at Script1702817850354.run(Script1702817850354.groovy:20)
	... 13 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
	at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:71)
	at generateCucumberReport.<init>(generateCucumberReport.groovy:33)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:51)
	at generate_report.run(generate_report:20)
	... 13 more

2023-12-17 20:02:23.880 ERROR c.k.katalon.core.main.TestCaseExecutor   - ❌ Test Cases/operations/generate_report FAILED.
Reason:
java.lang.NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException
	at net.masterthought.cucumber.ReportBuilder.<init>(ReportBuilder.java:71)
	at generateCucumberReport.<init>(generateCucumberReport.groovy:33)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
	at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:51)
	at generate_report.run(generate_report:20)
	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:448)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:128)
	at TempTestCase1702818136016.run(TempTestCase1702818136016.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException
	... 21 more

2023-12-17 20:02:24.486 INFO  c.k.katalon.core.main.TestCaseExecutor   - END Test Cases/operations/generate_report
`

but i already install plugin for apche common config
here list my plugin jar

Annotation 2023-12-17 202149

and i use the latest version katalon 9.1.0 also java 17 appium v2

can somebody help thank you

1 Like

Hi,

I will ask my team and letting you know soon

Hi,

I found this reference: java - NoClassDefFoundError: org/apache/commons/configuration/ConfigurationException - Stack Overflow. Hope this can help