'Failed testng.xml java.lang.ArrayStoreException: com.aventstack.extentreports.reporter.ExtentSparkReporter exception

Testng.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">

<suite name="Framework">

<listeners>
    <listener class-name="com.OT_refresh_01022022.utilities.Reporting"></listener>
</listeners>
<test name = "OT APP Test">
        <parameter name = "browser" value="chrome"/>
           <classes>
           <class name = "com.OT_refresh_01022022.testCases.TC_Login" />
       </classes>
       </test>
</suite>

Reporting.java file, Below is the reporting java file which has Extent Spark Reporter implemented

enter image description here

Running via testng.xml showing below error every time and can not able to execute

enter image description here

Any inputs please ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source