org.apache.poi.poifs.filesystem.OfficeXmlFileException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • How to read xlsx file from local java file
    via by Johny Talker,
  • error reading excel file using apache poi
    via by Priya Bhagat,
  • Reading excel data in selenium with testNG
    via Stack Overflow by Naresh
    ,
    • org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:108) at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:151) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:312) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:293) at readPOI.readDataToExcelFile(readPOI.java:18) at readPOI.main(readPOI.java:12)
    No Bugmate found.