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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Pepiii
, 2 years ago
Sheet index (1) is out of range (0..-1)
via tomosoft.jp by Unknown author, 1 year ago
Sheet index (-1) is out of range (0..0)
via Stack Overflow by Kaustav Basu
, 1 year ago
Sheet index (18) is out of range (0..17)
via GitHub by aaelony
, 2 years ago
Sheet index (-1) is out of range (0..7)
java.lang.IllegalArgumentException: Sheet index (0) is out of range (no sheets)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.validateSheetIndex(XSSFWorkbook.java:1061)
at day1.ExcelWrite.main(ExcelWrite.java:28)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 7 months ago

Know the solutions? Share your knowledge to help other developers to debug faster.