Hello,
This issue should be fixed after installing service packs/CFP's on AEM 6.1/6.2 instances. Please update the POI dependencies as well.
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.18</version>
</dependency>
Most of the community articles or blog posts talks about reading data from .xls (older version) files. Apache POI reads/writes both older (.xls)/Newer(.xlsx) excel files within AEM.
Thanks.