org.testng.TestNGException

Cannot instantiate class com.example.util.result.CustomReportListener

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • org.testng.TestNGException: Cannot instantiate class com.example.util.result.CustomReportListener at org.testng.internal.ClassHelper.newInstance(ClassHelper.java:53) at org.testng.TestNG.initializeConfiguration(TestNG.java:981) at org.testng.TestNG.run(TestNG.java:1089) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) Caused by: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

raytestraytest
3 times, last one
Unknown visitor
Unknown visitorOnce,
Stefan BrauneStefan Braune
2 times, last one
Deepak GroverDeepak Grover
Once,
Unknown visitor
Unknown visitorOnce,
4 more bugmates