Created attachment 35756 [details] OldExcelExtractor patch file to fix the open stream bug open(InputStream biffStream) closed the NPOIFSFileSystem right after open which is wrong. We should only close it when open failed. The buggy code: try { open(poifs); } finally { poifs.close(); } Should be: try { open(poifs); toClose = poifs; // Fixed by GR, we should not close it here } finally { if (toClose == null) { poifs.close(); } } Attached is the patch file
This should be applied now via r1828377 and will be included in Apache POI 4.0.0, thanks for the bug-report.