poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45473] New: HWPFwrite misbehaves on this Hebrew word file
Date Thu, 24 Jul 2008 08:47:42 GMT

           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
                FileOutputStream fos=new FileOutputStream("hebrew2.doc");

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.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

View raw message