https://bz.apache.org/bugzilla/show_bug.cgi?id=61991
Bug ID: 61991
Summary: Simple instantiation of XWPFDocument causes reflection
warning and method not found exception
Product: POI
Version: 3.17-FINAL
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: XWPF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
This simple code:
FileInputStream fis = new FileInputStream(filename);
document = new XWPFDocument(fis);
Using Tiki the mime of the file being attempted:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Generates:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.poi.openxml4j.util.ZipSecureFile$1
(file:/C:/javadev/workspace/poi-3.17/poi-ooxml-3.17.jar) to field
java.io.FilterInputStream.in
WARNING: Please consider reporting this to the maintainers of
org.apache.poi.openxml4j.util.ZipSecureFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
--> the blocker
java.lang.NoSuchMethodException:
org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPictureBaseImpl.<init>(org.apache.xmlbeans.SchemaType,
boolean)
Jar files in use:
POI Core came from
file:/C:/javadev/workspace/poi-3.17/poi-3.17.jar!/org/apache/poi/poifs/filesystem/POIFSFileSystem.class
POI OOXML came from
file:/C:/javadev/workspace/poi-3.17/poi-ooxml-3.17.jar!/org/apache/poi/POIXMLDocument.class
POI Scratchpad came from
file:/C:/javadev/workspace/poi-3.17/poi-scratchpad-3.17.jar!/org/apache/poi/hslf/usermodel/HSLFSlideShow.class
I have tried work arounds nothing so far successful. I've tried switching
between JVMs 1.7,1.8,1.9. Looking for jar dependencies and tried different
files.
I am building / running in Eclipse version: Oxygen.2 Release (4.7.2) Build id:
20171218-0600
Libraries on build path:
dom4j-2.1.0.jar
poi-3.17.jar
poi-ooxml-3.17.jar
poi-ooxml-schemas-3.17.jar
poi-scratchpad-3.17.jar
stax-api-1.0.1.jar
tika-eval-1.17.jar
xmlbeans-2.6.0.jar
--
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]