ConcurrentModificationException | Selenium Forum
M
Posted on 16/10/2016
Hi ,

I am getting the exception "java.util.ConcurrentModificationException". I found that the below lines causing the issue because when i comment these lines there is no exception . But i am using this for Extent Report generation.

@AfterMethod
public void quit()
{
rep.endTest(test);
rep.flush();
}

Please help me to fix this Exception issue.

Thanks,
Kannan C

M
Replied on 17/10/2016

show me all the import statements in java file.


M
Replied on 18/10/2016

Hi,

Please find my imports.

import java.io.IOException;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.SkipException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import com.inmar.project.basePackage.Base;
import com.inmar.project.util.DataStore;
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.LogStatus;
import com.relevantcodes.extentreports.common.ExtentManager;

Thanks,
Kannan C

Responsive image

M
Replied on 18/10/2016

have you tried using some other excel file?


M
Replied on 18/10/2016

No


M
Replied on 18/10/2016

I tried with other excel file (xlsx) in the same location and getting the same exception.


M
Replied on 19/10/2016

send me the excel file and code.


M
Replied on 19/10/2016

Please find the Excel file , test case code(StoreSearch.java) and base code (Base.java)attached.

Note: there is program Login.java in which i am not using Excel file but when i execute it , I still i get the same exception.


M
Replied on 20/10/2016

zip and send the entire project.


M
Replied on 20/10/2016

I zipped and try to upload. It is keep on processing and the upload is not completed . The file size is 11mb. Original size is 66mb