Bug 63149

Summary: 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)
Product: POI Reporter: NadavB <nadavbenedek>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 3.17-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Example for getting the exception

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