title: I want to read the data from the Excel in selenium using java, but it is throwing the exception as ""main" java.lang.ExceptionInInitializerError"
body: <p>I want to read the data from the Excel in selenium using java, but it is throwing the exception as below:</p>
  <pre><code>&quot;main&quot; java.lang.ExceptionInInitializerErrorat org.apache.poi.ss.util.CellReference.&lt;init&gt;(CellReference.java:110).
  </code></pre>
  <p>Tried multiple ways, but still getting the exception of main.
  I have created the folder as &quot;excel&quot; in the selenium project, in which I have pasted the excel.</p>
  <pre><code>package utils;
      
      import java.io.File;
      import java.io.FileInputStream;
      import java.io.IOException;
      import java.io.InputStream;
      
      import org.apache.poi.ss.usermodel.Sheet;
      import org.apache.poi.ss.usermodel.Workbook;
      import org.apache.poi.ss.usermodel.WorkbookFactory;
      
      public class GetRowCount {
      
          public static void main(String[] args) throws Exception {
      ReadExcel();
      }
      
          public static void ReadExcel() 
      {
      
              File src = new File(&quot;C:....&quot;);
              FileInputStream fis = new FileInputStream(src);
              
              XSSFWorkbook wb = new XSSFWorkbook(&quot;fis&quot;);
          
              
              XSSFSheet sheet1 = wb.getSheetAt(0);
              
          
              String data0 =sheet1.getRow(0).getCell(0).getStringCellValue();
              
              System.out.println(&quot;Data from Excel is &quot;+data0);
          }
  </code></pre>