title: Exception when using Apache POI to read XLSX file
body: <p>I'm currently working with Apachi, as I needed to read data from a XLSX file, and it will later be converted to CSV. Here's the code I'm using to create my XSSFWorkbook, and it is causing an exception every single time. From what I could find, XMLBeans is part of the cause. It has been deprecated, however, it is a dependency of POI in this instance.</p>
  
  <pre><code>public static void appendCSV(File inputFile, String outputFile, String tag)
  {
      System.out.println(inputFile.getAbsolutePath());
         InputStream inp = null;
          try {
              inp = new FileInputStream(inputFile);
              XSSFWorkbook wb = new XSSFWorkbook(inp);
  </code></pre>
  
  <p>My exception gets thrown at the last line in the block above.</p>
  
  <pre><code>Exception in thread "main" org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
  at org.apache.poi.POIXMLFactory.createDocumentPart(POIXMLFactory.java:65)
  at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:601)
  at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:174)
  at org.apache.poi.xssf.usermodel.XSSFWorkbook.&lt;init&gt;(XSSFWorkbook.java:279)
  at BigBangarang.appendCSV(BigBangarang.java:68)
  at BigBangarang.main(BigBangarang.java:268)
  
  Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:56)
  at org.apache.poi.POIXMLFactory.createDocumentPart(POIXMLFactory.java:62)
  ... 5 more
  
  Caused by: java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.setLoadEntityBytesLimit(I)Lorg/apache/xmlbeans/XmlOptions;
  at org.apache.poi.POIXMLTypeLoader.&lt;clinit&gt;(POIXMLTypeLoader.java:50)
  at org.apache.poi.xssf.model.SharedStringsTable.readFrom(SharedStringsTable.java:127)
  at org.apache.poi.xssf.model.SharedStringsTable.&lt;init&gt;(SharedStringsTable.java:108)
  ... 11 more
  </code></pre>
  
  <p>Has anybody ran into this situation before? I have the most up to date release of XMLBeans, and I'm almost feeling like I may need to find an older version, as it says a method is missing. I'm not sure if there is an alternate/easier way to either read an XLSX, or to simply convert it to a CSV prior to handling any data. </p>