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

Stack Overflow | user2526830 | 5 months ago
  1. 0

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

    Stack Overflow | 5 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 | 5 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

  5. 0

    Java Prgoram : Reading Excel File 2003

    Stack Overflow | 1 year ago | user5568398
    java.lang.IllegalArgumentException: Sheet index (0) is out of range (0..-1)
  6. 0

    What is the Index range of an Excel data sheets... How to use index range in Java?

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

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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