I am Trying to create XLSX file using POI API but an error has been occurred..
java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setSaveAggressiveNamespaces()Lorg/apache/xmlbeans/XmlOptions;
at org.apache.poi.POIXMLDocumentPart.(POIXMLDocumentPart.java:56)
and i am not able to figure out the reason of this error please help me out…
It looks like you have an older version of XmlBeans on your classpath. Apache POI requires XMLBeans 2.3 or newer (newer is fine, older isn’t!). See the components page for details of the dependencies, which you also get in the binary download. Just remove the older version, make sure a new enough version of xmlbeans is present, and you should be fine!