org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13]

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 fozzybear
, 1 year ago
Package should contain a content type part [M1.13]
via Stack Overflow by mtk
, 2 years ago
Package should contain a content type part [M1.13]
via poi-user by Jonathan Hodges, 1 year ago
The part /_rels/.rels does not have any content type ! Rule: Package require content types when retrieving a part from a package. [M.1.14]
via Stack Overflow by Shahar Cohen
, 2 years ago
The part /xl/sharedStrings.xml does not have any content type ! Rule: Package require content types when retrieving a part from a package. [M.1.14]
via apache.org by Unknown author, 1 year ago
The part /xl/sharedStrings.xml does not have any content type ! Rule: Package require content types when retrieving a part from a package. [M.1.14]
org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13]
at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:197)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:696)

Users with the same issue

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

Write tip

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