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

Stack Overflow | user2526830 | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 10 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 | 10 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. Casper 1 times, last 2 weeks ago
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