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 2016/01/25 22:55:38 UTC

[Bug 58920] New: java.lang.IllegalArgumentException: Value for parameter 'id' was out of bounds when parsing docx

https://bz.apache.org/bugzilla/show_bug.cgi?id=58920

            Bug ID: 58920
           Summary: java.lang.IllegalArgumentException: Value for
                    parameter 'id' was out of bounds when parsing docx
           Product: POI
           Version: 3.13-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: gaspar.pizarro.v@gmail.com

Created attachment 33491
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33491&action=edit
Problematic unparseable document

I have the exception 
java.lang.IllegalArgumentException: Value for parameter 'id' was out of bounds
    at org.apache.poi.util.IdentifierManager.reserve(IdentifierManager.java:80)
    at org.apache.poi.xwpf.usermodel.XWPFRun.<init>(XWPFRun.java:111)
    at org.apache.poi.xwpf.usermodel.XWPFRun.<init>(XWPFRun.java:156)
    at
org.apache.poi.xwpf.usermodel.XWPFParagraph.buildRunsInOrderFromXml(XWPFParagraph.java:134)
    at
org.apache.poi.xwpf.usermodel.XWPFParagraph.<init>(XWPFParagraph.java:87)
    at
org.apache.poi.xwpf.usermodel.XWPFHeader.onDocumentRead(XWPFHeader.java:116)
    at
org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:183)
    at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:166)
    at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:118)
    at
org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:59)
    at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:181)
    at
org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)
    ... 99 more


when parsing the attached document with Tika, while using (according to its
POM) POI 3.13. It was created using LibreOffice.

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


[Bug 58920] java.lang.IllegalArgumentException: Value for parameter 'id' was out of bounds when parsing docx

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Created attachment 33492
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33492&action=edit
Error when opening the file with Microsoft Office

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


[Bug 58920] java.lang.IllegalArgumentException: Value for parameter 'id' was out of bounds when parsing docx

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

Dominik Stadler <do...@gmx.at> changed:

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

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
When using latest POI, I get a different error:

Caused by: org.apache.xmlbeans.XmlException: error: duplicate attribute
'w:eastAsia'
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3511)

and when I try to open the file in Microsoft Word, I get a similar error
message, see screenshot. 

Therefore it seems this file is not correctly written in the first place and
you need to discuss with the developers of LibreOffice to see if there is a bug
there.

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