Avik,
this testcase never ran successfully. I added it once because someone
sent an error report and complained that reading an empty document does
not work. The testcase verifies that by creating an empty document and
trying to read it back in.
I fiddeled around with POIFS a little bit but due to lack of time and
lack of knowledge about POIFS I couldn't find a solution. However, I
believe that this is an error and someone who knows POIFS better than me
should try to solve that issue.
Am Mittwoch, den 20.04.2005, 18:02 +0530 schrieb Avik Sengupta:
> with the following error. Ideas?? Can someone confirm this with latest
> CVS HEAD?
> (ant -Dtestcase=org.apache.poi.poifs.filesystem.TestEmptyDocument
> single-test)
>
> [junit] Testcase: testSingleEmptyDocument took 0.113 sec
> [junit] Caused an ERROR
> [junit] Cannot remove block[ 0 ]; out of range
> [junit] java.io.IOException: Cannot remove block[ 0 ]; out of range
> [junit] at
> org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:103)
> [junit] at
> org.apache.poi.poifs.storage.BlockAllocationTableReader.fetchBlocks(BlockAllocationTableReader.java:190)
> [junit] at
> org.apache.poi.poifs.storage.BlockListImpl.fetchBlocks(BlockListImpl.java:128)
> [junit] at
> org.apache.poi.poifs.filesystem.POIFSFileSystem.processProperties(POIFSFileSystem.java:403)
> [junit] at
> org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:102)
> [junit] at
> org.apache.poi.poifs.filesystem.TestEmptyDocument.testSingleEmptyDocument(TestEmptyDocument.java:94)
Best regards
Rainer Klute
Rainer Klute IT-Consulting GmbH
Dipl.-Inform.
Rainer Klute E-Mail: [EMAIL PROTECTED]
K�rner Grund 24 Telefon: +49 172 2324824
D-44143 Dortmund Telefax: +49 231 5349423
Inhibit software patents: http://www.nosoftwarepatents.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/