Code Bye

java.lang.IllegalStateException: Zip File is closed

 java.lang.IllegalStateException: Zip File is closed
13:02:38,585 ERROR [STDERR]  at org.apache.poi.openxml4j.util.ZipFileZipEntrySource.getEntries(ZipFileZipEntrySource.java:45)
13:02:38,585 ERROR [STDERR]  at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:182)
13:02:38,585 ERROR [STDERR]  at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:665)
13:02:38,585 ERROR [STDERR]  at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:253)
13:02:38,585 ERROR [STDERR]  at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:200)
13:02:38,595 ERROR [STDERR]  at com.creaway.yyjk.util.ExcelUtil.viewExl(ExcelUtil.java:227)
13:02:38,595 ERROR [STDERR]  at com.creaway.yyjk.service.yzh.YZHService.liulanexportExl(YZHService.java:81)
13:02:38,595 ERROR [STDERR]  at com.creaway.yyjk.action.yzh.YZHAction.viewExl(YZHAction.java:83)
13:02:38,595 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:02:38,595 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:02:38,595 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:02:38,595 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:597)
….
导出Excel(07)时报的错,本人的文件格式是.xlxs的,求各位高手帮看一下是怎么回事。
解决方案

20

本人遇到过  路径问题

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明java.lang.IllegalStateException: Zip File is closed