[Bug 61612] New: Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 61612] New: Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61612

            Bug ID: 61612
           Summary: Caught
                    org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeEx
                    ception: Rule M2.4 exception
           Product: POI
           Version: 3.16-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Tried to open docx file in that way:

File wordFile = new File(wordFilePath);
OPCPackage wordPackage = OPCPackage.open(wordFile, PackageAccess.READ_WRITE);
XWPFDocument wordDocument = new XWPFDocument(wordPackage);

Then I caught this exception:

Exception in thread "main"
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4
exception : this error should NEVER happen! If you can provide the triggering
file, then please raise a bug at
https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file
that triggers it, thanks!
        at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.getContentType(ContentTypeManager.java:340)
        at
org.apache.poi.openxml4j.opc.internal.ContentTypeManager.removeContentType(ContentTypeManager.java:253)
        at
org.apache.poi.openxml4j.opc.OPCPackage.removePart(OPCPackage.java:1020)
        at
org.apache.poi.openxml4j.opc.PackagePart.getOutputStream(PackagePart.java:519)
        at
org.apache.poi.xwpf.usermodel.XWPFDocument.commit(XWPFDocument.java:764)
        at
org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:414)
        at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:242)

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 61612] Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61612

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from [hidden email] ---
Created attachment 35415
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35415&action=edit
File which triggered an exception

Couldn't send it directly (Bugzilla rased an error), so I zipped it

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 61612] Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61612

--- Comment #2 from [hidden email] ---
Created attachment 35416
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35416&action=edit
Another example, triggered that exception too

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 61612] Caught org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=61612

Dominik Stadler <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]