I'm trying to create a XSSFWorkbook to iterate over it later but every time it gets to this lines of code the program gets blocked, specifically at the second line.
FileInputStream fis = new FileInputStream(location);
XSSFWorkbook workbook = new XSSFWorkbook(fis);
XSSFSheet ws = workbook.getSheetAt(0);
I don't know what the problem can be and I've tried different ways of loading the input file. The program throws no exception, it just gets stuck there. I've had no problem reading .xls files, loading them like this:
InputStream input = new BufferedInputStream(new FileInputStream(location));
POIFSFileSystem fs = new POIFSFileSystem( input );
HSSFWorkbook wb = new HSSFWorkbook(fs);
HSSFSheet sheet = wb.getSheetAt(0);
Thank you