You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/02/19 16:57:20 UTC

DO NOT REPLY [Bug 17208] New: - WordDocument Problem: createListTables - Negative Array Size

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17208>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17208

WordDocument Problem: createListTables - Negative Array Size

           Summary: WordDocument Problem: createListTables - Negative Array
                    Size
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: HDF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: rpjava@hotmail.com


I have a word document that was created in word 2000. Whenever I attempt to 
create a WordDocument object, it throws the exception:

Exception in thread "main" java.lang.NegativeArraySizeException
        at org.apache.poi.hdf.extractor.data.ListTables.createLVL
(ListTables.java:206)
        at org.apache.poi.hdf.extractor.data.ListTables.initLFO
(ListTables.java:184)
        at org.apache.poi.hdf.extractor.data.ListTables.<init>
(ListTables.java:78)
        at org.apache.poi.hdf.extractor.WordDocument.createListTables
(WordDocument.java:1670)
        at org.apache.poi.hdf.extractor.WordDocument.findFormatting
(WordDocument.java:399)
        at org.apache.poi.hdf.extractor.WordDocument.processComplexFile
(WordDocument.java:326)
        at org.apache.poi.hdf.extractor.WordDocument.readFIB
(WordDocument.java:278)
        at org.apache.poi.hdf.extractor.WordDocument.<init>
(WordDocument.java:228)
        at Word.main(Word.java:12)

The document has only text, and a footer. Let me know if you need more 
information. I would be happy to work on this problem, but I do not fully 
understand what LittleEndian.getInt is doing, for example. If someone could 
explain to me the purpose of that (and where to get info on that), as well as 
where to get info on Word 2000 document format, I'm sure I can be of help.