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 2008/07/24 10:47:42 UTC

DO NOT REPLY [Bug 45473] New: HWPFwrite misbehaves on this Hebrew word file

https://issues.apache.org/bugzilla/show_bug.cgi?id=45473

           Summary: HWPFwrite misbehaves on this Hebrew word file
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: sbendavid@gmail.com


Created an attachment (id=22311)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22311)
this file is not handled correctly

Simply reading and writing this file:

                HWPFDocument doc = new HWPFDocument(new
FileInputStream("hebrew.doc"));
                FileOutputStream fos=new FileOutputStream("hebrew2.doc");
                doc.write(fos);

generates a corrupted word file which can not be read by either Word or POI:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at
org.apache.poi.hwpf.model.TextPieceTable.<init>(TextPieceTable.java:91)
        at
org.apache.poi.hwpf.model.ComplexFileTable.<init>(ComplexFileTable.java:59)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:219)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:152)
        at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:140)
        at HWPFwrite.main(HWPFwrite.java:19)

I am using POI 3.1 final


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 45473] HWPFwrite misbehaves on this Hebrew word file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45473

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 2011-06-24 08:21:26 UTC ---
The problem is not reproducible with latest build from trunk. I added a unit
test and included the attached document in our collection of test documents.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org