NoSuchMethodError in main thread while reading xlsx using apache poi
Recent versions of
poi-ooxml require you to use at least
java 6. The method in question was only added since
java 6. Consider upgrading your
From the official docs,
The OOXML jars require a stax implementation, but now that Apache POI requires Java 6, that is provided by the JRE and no additional stax jars are required. The OOXML jars used to require DOM4J, but the code has now been changed to use JAXP and no additional dom4j jars are required.
Since the question was edited, I'm specifying the build this method was added:
So a minimum of this version must be used in OP's case.