Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Runtime error in java with apache POI

I get the error:

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;
at org.apache.poi.POIXMLDocumentPart.<clinit>(POIXMLDocumentPart.java:56)

from the line 56:

public static Workbook wb = new XSSFWorkbook();

I just had to re-link my library, but all i did was move all the files and reset the build path to where i moved the files to, and removed the old one.

like image 906
Nick Avatar asked Apr 14 '26 04:04

Nick


1 Answers

java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;

This statement says that you have mismatch(incompatible) of jars. Make sure you have supported version of jars.

like image 191
kosa Avatar answered Apr 16 '26 18:04

kosa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!