https://bz.apache.org/bugzilla/show_bug.cgi?id=61575
Bug ID: 61575
Summary: OpenXML4JRuntimeException when closing OPCPackage
Product: POI
Version: 3.16-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: blocker
Priority: P2
Component: OPC
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 35388
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35388&action=edit
Source and example files
The docx file contains an image causing this exception. It does not happen for
any other image in my actual document. Removing the graphic will work just fine
with the attached test code.
Error Message:
rg.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an
error occurs while saving the package : The part /word/media/image1.wmf failed
to be saved in the stream with marshaller
org.apache.poi.openxml4j.opc.internal.marshallers.DefaultMarshaller@4b85612c
at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:595)
at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1543)
at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1526)
at
org.apache.poi.openxml4j.opc.ZipPackage.closeImpl(ZipPackage.java:450)
at org.apache.poi.openxml4j.opc.OPCPackage.close(OPCPackage.java:479)
at
com.sovelia.office.DocxMetadataWriter.setDocxMetadata(DocxMetadataWriter.java:29)
at
com.sovelia.office.DocxMetadataWriter.main(DocxMetadataWriter.java:12)
Caused by: org.apache.poi.openxml4j.exceptions.OpenXML4JException: The part
/word/media/image1.wmf failed to be saved in the stream with marshaller
org.apache.poi.openxml4j.opc.internal.marshallers.DefaultMarshaller@4b85612c
at
org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:586)
... 6 more
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]