首页 > 编程语言 > 详细

ZipSecureFile$ThresholdInputStream cannot be cast to java.base/java.util.zip.ZipFile$ZipFileInputStream

时间:2020-04-26 23:57:15      阅读:423      评论:0      收藏:0      [点我收藏+]

使用apache.poi导出excel文件的时候会报这个错误

 Caused by: java.lang.ClassCastException: 
org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to java.base/java.util.zip.ZipFile$ZipFileInputStream

百度之后发现只有一条有用的链接。

https://bz.apache.org/bugzilla/show_bug.cgi?id=62187

技术分享图片

 

然后检查IDEA的使用的是JAVA11。我原来的项目是用eclipse开发的 使用的是本机的java8。

所以切换IDEA的JDK为 java8后问题得到解决。

技术分享图片

 技术分享图片

技术分享图片

 

ZipSecureFile$ThresholdInputStream cannot be cast to java.base/java.util.zip.ZipFile$ZipFileInputStream

原文:https://www.cnblogs.com/CryOnMyShoulder/p/12783292.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!