title: java.io.IOException: Failed to read zip entry source
body: <pre><code>FileInputStream file = new FileInputStream("/file/path/report.xlsx"); 
  XSSFWorkbook wb = new XSSFWorkbook(file); --!ERROR LINE!--
  </code></pre>
  
  <p>I get an error in the 2nd line. I looked at different online resources such as this:</p>
  
  <p><a href="https://stackoverflow.com/questions/11145323/error-reading-excel-xlsx-with-apache-poi">Error reading Excel .XLSX with Apache POI</a></p>
  
  <pre><code>Exception in thread "main" java.io.IOException: Failed to read zip entry source
      at org.apache.poi.openxml4j.opc.ZipPackage.&lt;init&gt;(ZipPackage.java:106)
      at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:342)
      at org.apache.poi.util.PackageHelper.open(PackageHelper.java:37)
      at org.apache.poi.xssf.usermodel.XSSFWorkbook.&lt;init&gt;(XSSFWorkbook.java:285)
      at test.test.main(test.java:48)
  Caused by: 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: 1483367, cis.counter: 14796, ratio: 0.009974605070761314Limits: MIN_INFLATE_RATIO: 0.01
      at org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream.advance(ZipSecureFile.java:257)
      at org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream.read(ZipSecureFile.java:214)
      at java.io.FilterInputStream.read(Unknown Source)
      at org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource$FakeZipEntry.&lt;init&gt;(ZipInputStreamZipEntrySource.java:132)
      at org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource.&lt;init&gt;(ZipInputStreamZipEntrySource.java:56)
      at org.apache.poi.openxml4j.opc.ZipPackage.&lt;init&gt;(ZipPackage.java:99)
      ... 4 more
  </code></pre>
  
  <p>I added         <strong>ZipSecureFile.setMinInflateRatio(0.009);</strong></p>
  
  <pre><code>   FileInputStream file = new FileInputStream("/file/path/report.xlsx"); 
     ZipSecureFile.setMinInflateRatio(0.009);
     XSSFWorkbook wb = new XSSFWorkbook(file);
  </code></pre>
  
  <p><strong><em>It worked fine for a while, then it started throwing the same error</em></strong></p>
  
  <p>Any Help or Guidance is appreciated. </p>