开发者社区> 问答> 正文

我试图在Flink程序中将excel加载到POI工作簿中。有这样的错误。

引起:java.lang.IllegalArgumentException:class org.apache.commons.compress.archivers.zip.ZipFile $ 1的InputStream未实现InputStreamStatistics。org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream。(ZipArchiveThresholdInputStream.java:63)位于org.apache.poi.openxml4j的org.apache.poi.openxml4j.util.ZipSecureFile.getInputStream(ZipSecureFile.java:147)。 util.ZipSecureFile.getInputStream(ZipSecureFile.java:34)位于org.apache.poi.openxml4j.util.ZipFileZipEntrySource.getInputStream(ZipFileZipEntrySource.java:66)org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage。 java:258)org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:725)atg.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275)org.apache .poi.openxml4j。

注意这里提到的测试https://github.com/apache/poi/blob/f509d1deae86866ed531f10f2eba7db17e098473/src/ooxml/testcases/org/apache/poi/openxml4j/util/TestZipSecureFile.java

展开
收起
flink小助手 2018-12-10 11:15:24 5853 0
2 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Flink CDC Meetup PPT - 龚中强 立即下载
Flink CDC Meetup PPT - 王赫 立即下载
Flink CDC Meetup PPT - 覃立辉 立即下载