I am trying to upload docx file but I can't.
if(ext2[1] ! = null && ext2[1].trim().toLowerCase(new Locale("en","US")).equals("docx")){
fis = new FileInputStream(DotsFormUtil.cleanString(path));
XWPFDocument doc = new XWPFDocument(fis);
}
I am using XWPFDocument doc = new XWPFDocument(fis)
It is showing the following error the moment the code reaches XWPFDocument doc = new XWPFDocument(fis);
Package[package ognl] of target class[class ognl.MethodFailedException] of target [ognl.MethodFailedException:Method "saveAttach" failed for object com.dots.action.getDotsMissionAction@34f2ba1a [java.lang.NoSuchFieldError:Factory]] or package[package java.lang,Java Platform API Specification, version 1.8] of member [public java.lang.String java.lang.Throwable.getMessage()] are excluded!
I have poi-5.2.5, poi-ooxml-5.2.5, poi-ooxml-full-5.2.5, poi-scratchpad-5.2.5. Kindy advise.