https://issues.apache.org/bugzilla/show_bug.cgi?id=51585
--- Comment #3 from [email protected] --- I have the same problem as described. WorkbookFactory.create() hangs with a file I have localy and the sample file provided in this bug report. I am able to parse the underlying zip files and read their contents without any issue, so the problem is NOT related to ZIP corruption. try { ZipFile zip = new ZipFile("C:\\TestHang.xlsx"); List<ZipEntry> entries = (List<ZipEntry>) Collections.list(zip.entries()); for ( ZipEntry ze:entries){ System.out.println("-------> "+ze.getName()); System.out.println("\t -------> "+ze.getComment()); System.out.println("\t -------> "+ze.getCompressedSize()); System.out.println("\t -------> "+ze.getCrc()); System.out.println("\t -------> "+ze.getMethod()); System.out.println("\t -------> "+ze.getSize()); System.out.println("\t -------> "+ze.getTime()); InputStream is = zip.getInputStream(ze); StringWriter writer = new StringWriter(); IOUtils.copy(is, writer); System.out.println(writer.toString()); } } catch (IOException e) { e.printStackTrace(); } -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
