org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents

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 Coderanch by Johny Talker, 1 year ago
The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
via nabble.com by Unknown author, 2 years ago
The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
via Coderanch by Priya Bhagat, 11 months ago
The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
via Oracle Community by j.gauger, 1 year ago
The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Documents. You need to call a different part of POI to process this data (eg XSSF instead of HSSF)
via Stack Overflow by Osama Hashem
, 2 years ago
The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
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.(HeaderBlockReader.java:108)
at org.apache.poi.poifs.filesystem.POIFSFileSystem.(POIFSFileSystem.java:151)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:312)
at undefined.readPOI.readDataToExcelFile(readPOI.java:18)
at undefined.readPOI.main(readPOI.java:12)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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