Resending... I think the attachment caused my mail not to go through. Let me know if you can help with this and I can send the file to you directly.
Jari Niskala Get a FREE Microsoft Project Viewer at http://www.kadonk.com _____ From: Jari Niskala [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 5:37 PM To: '[email protected]' Cc: '[EMAIL PROTECTED]' Subject: RE: POIFSFileSystem IOException Some additional information (including the problematic file): I'm now attempting to debug this file using the source from POI-3.2-FINAL-20081019. Looks like the issue is that the file is 4,816,896 bytes which is 9408 512 byte big blocks. However, when the POIFS follows the entries links it is expecting to be able to access entries greater than 11000, with what looks to be 11036 as the limit. The entries does look valid as it has an end of chain (-2) coming right after the invalid index. So most likely this means that not all of the blocks are 512 bytes... I do remember seeing some changes regarding small/large block sizes in the latest release so I will have a look to see if that might offer some clues to this. I'm completely new to this code so if anyone could help me with this it would be greatly appreciated. Here's also the stack trace: BlockAllocationTableReader.fetchBlocks(int, BlockList) line: 192 RawDataBlockList(BlockListImpl).fetchBlocks(int) line: 130 SmallBlockTableReader.getSmallDocumentBlocks(RawDataBlockList, RootProperty, int) line: 59 POIFSFileSystem.<init>(InputStream) line: 177 Thanks! Jari Niskala _____ From: Jari Niskala [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2008 10:54 AM To: [email protected] Cc: [EMAIL PROTECTED] Subject: POIFSFileSystem IOException Hi, I have customer file that causes an java.io.IOException: Cannot remove block[ 11024 ]; out of range[ 0 - 9406 ] when trying to create a POIFSFileSystem for it. E.g. POIFSFileSystem fs = new POIFSFileSystem(is); I don't have a stacktrace yet, but I can get that as well. As an even better option, the customer has given approval for submitting the problematic file for debugging purposes. This problem is seen with poi-3.2-FINAL-20081019 as well as with the latest poi-3.5-beta4-20081128.jar. The file in question is a MS Project 2007 file and re-saving the file in MS Project 2007 doesn't clear this issue so it seems more persistent than some of the temporary issues we have seen in the past where re-saving the file clears the issue. This file can be successfully opened in MS Project. Let me know if you can help and I can send the file as well. Thanks in advance for all your help. Best regards, Jari Niskala
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
