Open anand853 opened 7 years ago
Can you create a gist so I can try to repro and fix this?
I don't see any code in the gist.. how would I reproduce? can you share a sample project with me? How are you starting ExtentReports and creating tests?
i cant share the code outside. can we please set some time and debug on this?
@anand853 what should we debug? we need the code that you have written to debug in the first place. I would suggest you create a sample project where you try to simulate the kind of parallel infrastructure that is causing the problem.
Meanwhile you prepare a small test suite reproducing the problem. Let me take a look at the call stack and see if I can find something.
@anshooarora : The problem is that when trackLastRunStatus method is iterating over the list of status (Contained list of AbstractSturcture class). Some other thread is modifying the list. Which results in this exception. A quick fix could be if we make trackLastRunStatus method synchronized. But the real problem is how can we simulate this situation and is it a valid user scenario? With the lack of complete understanding I am not able to find out if this is a valid scenario or not.
@anshooarora @virenv can i have your email id? so that i can share the code ?
@anand853 - would it be possible to upgrade to version 3?
Facing issue in Extent report 3.1.5, Is there any workaround?
[TestNG] Reporter org.testng.reporters.jq.Main@7a30d1e6 failed java.lang.NullPointerException at org.testng.reporters.jq.TimesPanel.maxTime(TimesPanel.java:124) at org.testng.reporters.jq.TimesPanel.getContent(TimesPanel.java:89) at org.testng.reporters.jq.BaseMultiSuitePanel.generate(BaseMultiSuitePanel.java:25) at org.testng.reporters.jq.Main.generateReport(Main.java:74) at org.testng.TestNG.generateReports(TestNG.java:1027) at org.testng.TestNG.run(TestNG.java:970) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
The stacktrace doesn't point to Extent.. this seems to be stemming from TestNG. Maybe upgrade your TestNG version and try again?
I am using TestNG latest Beta(Release 7.0.0.1 beta 1) version inbuilt with Intelli J. Cluess less about this null pointer exception.
Hi, I hit java.util.ConcurrentModificationException: null when im using extentreport with Maven and testNG
testng:config