Bug 63149 - When opening the attached .docx file, I get java.lang.NoSuchMethodException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPictureBaseImpl.<init>(org.apache.xmlbeans.SchemaType, boolean)
Summary: When opening the attached .docx file, I get java.lang.NoSuchMethodException: ...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.17-FINAL
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-06 11:41 UTC by NadavB
Modified: 2019-02-06 11:58 UTC (History)
0 users



Attachments
Example for getting the exception (8.86 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-02-06 11:41 UTC, NadavB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NadavB 2019-02-06 11:41:34 UTC
Created attachment 36425 [details]
Example for getting the exception

When opening the attached .docx file, I get:

java.lang.NoSuchMethodException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPictureBaseImpl.<init>(org.apache.xmlbeans.SchemaType, boolean)

Code:

FileInputStream fis = new FileInputStream("b2.docx");        
XWPFDocument    doc = new XWPFDocument(fis);

I am using Apache POI 3.17

Is this solved in later versions or is it still a bug later on?
Comment 1 Tim Allison 2019-02-06 11:58:17 UTC
Y, this is fixed in later versions. See:
https://bz.apache.org/bugzilla/show_bug.cgi?id=61991