java.lang.IllegalArgumentException: Sheet index (0) is out of range (no sheets)

Stack Overflow | user2526830 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Write data into new row in excel file whenever i run the code using Apache POI in Selenium WebDriver

    Stack Overflow | 9 months ago | user2526830
    java.lang.IllegalArgumentException: Sheet index (0) is out of range (no sheets)
  2. 0

    Read from excel cell Eclipse

    Stack Overflow | 2 years ago | Pepiii
    java.lang.IllegalArgumentException: Sheet index (1) is out of range (0..-1)
  3. 0

    XSSFSheet: Sheet index is out of range

    Stack Overflow | 9 months ago | Kaustav Basu
    java.lang.IllegalArgumentException: Sheet index (18) is out of range (0..17)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Sheet index (0) is out of range (no sheets)

      at org.apache.poi.xssf.usermodel.XSSFWorkbook.validateSheetIndex()
    2. Apache POI
      XSSFWorkbook.getSheetAt
      1. org.apache.poi.xssf.usermodel.XSSFWorkbook.validateSheetIndex(XSSFWorkbook.java:1061)
      2. org.apache.poi.xssf.usermodel.XSSFWorkbook.getSheetAt(XSSFWorkbook.java:848)
      2 frames
    3. day1
      ExcelWrite.main
      1. day1.ExcelWrite.main(ExcelWrite.java:28)
      1 frame