o.a.p.POIXMLException

java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This may indicate that the file is used to inflate memory usage and thus could pose a security risk. You can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need to work with files which exceed this limit. Counter: 855880, cis.counter: 8537, ratio: 0.009974529139599009Limits: MIN_INFLATE_RATIO: 0.01

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Unknown author,
  • Stack trace

    • o.a.p.POIXMLException: java.io.IOException: Zip bomb detected! The file would exceed the max. ratio of compressed file size to the size of the expanded data. This may indicate that the file is used to inflate memory usage and thus could pose a security risk. You can adjust this limit via ZipSecureFile.setMinInflateRatio() if you need to work with files which exceed this limit. Counter: 855880, cis.counter: 8537, ratio: 0.009974529139599009Limits: MIN_INFLATE_RATIO: 0.01 at o.a.p.xwpf.usermodel.XWPFPictureData.getChecksum(XWPFPictureData.java:157) at o.a.p.xwpf.usermodel.XWPFDocument.registerPackagePictureData(XWPFDocument.java:1316) at o.a.p.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:213) at o.a.p.POIXMLDocument.load(POIXMLDocument.java:190)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.