https://bz.apache.org/bugzilla/show_bug.cgi?id=60670
--- Comment #8 from Marcus Lundblad <marcus.lundb...@primekey.se> --- (In reply to Nick Burch from comment #7) > I've just tried with your program and your 3gb msi file, but I think the > file might be corrupt? When I run the program, it fails with: > > Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 8, > Size: 8 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) > at java.util.ArrayList.get(ArrayList.java:411) > at > org.apache.poi.poifs.property.PropertyTableBase. > populatePropertyTree(PropertyTableBase.java:128) > at > org.apache.poi.poifs.property.PropertyTableBase.<init>(PropertyTableBase. > java:63) > at > org.apache.poi.poifs.property.NPropertyTable.<init>(NPropertyTable.java:66) > at > org.apache.poi.poifs.filesystem.NPOIFSFileSystem. > readCoreContents(NPOIFSFileSystem.java:440) > at > org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem. > java:235) > at > org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem. > java:168) > at Main.main(Main.java:18) > > I've done a fix for PropertyTableBase to skip broken entries. That then lets > me run your program without error I can still reproduce the "Negative position" exception problem with a file generated by the WiX toolset. I only managed to generate a very large file with random data (so it won't compress, will see if I can still provide a link to download it). Also, it did actually work with my sample test program, but when I increased the size of the byte array to add as an extra document to 10000 bytes I got the same error again, so I guess it might be due to padding (when a new block needs to be created). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org