开发者社区 问答 正文

我试图在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 5984 分享
分享
版权
举报
2 条回答
写回答
取消 提交回答
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等