问题描述
java.lang.IllegalStateException:ZipFileisclosedatorg.apache.poi.openxml4j.util.ZipFileZipEntrySource.getEntries(ZipFileZipEntrySource.java:45)atorg.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:161)atorg.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:662)atorg.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:223)atorg.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:186)atcom.huawei.unistar.iriver.mr.server.common.util.excel.processor.AbsExcel2007Processor.processOneSheet(AbsExcel2007Processor.java:148)atcom.huawei.unistar.iriver.mr.server.common.util.excel.processor.AbsExcelProcessor.processOneSheet(AbsExcelProcessor.java:172)atcom.huawei.unistar.iriver.mr.server.wireless.business.impl.WirelessBusinessImpl.insertSurveyData(WirelessBusinessImpl.java:7967)atcom.huawei.unistar.iriver.mr.server.wireless.business.impl.WirelessBusinessImpl.importSiteData(WirelessBusinessImpl.java:7931)atcom.huawei.unistar.iriver.mr.server.wireless.business.impl.WirelessBusinessImpl.importSASiteData(WirelessBusinessImpl.java:8155)atcom.huawei.unistar.iriver.mr.server.wireless.service.WirelessServiceImpl.importSASiteData(WirelessServiceImpl.java:1219)
解决方案
解决方案二:
路径没错吧~
解决方案三:
感觉是提前关闭流的问题,怀疑是多线程引起的。在正常的环境多运行几次看看是否也报错