原文:
点击查看代码
File excelFile = new File(filePath);
try {
if (excelFile.exists()) {
wb = new SXSSFWorkbook(new XSSFWorkbook(excelFile), 1000,true);
} else {
wb = new SXSSFWorkbook(1000);
}
} catch (IOException e) {
logger.error(trackId + e.getMessage(), e);
}
excelFile改为new FileInputStream(filePath) 即解决报错
点击查看代码
File excelFile = new File(filePath);
try {
if (excelFile.exists()) {
wb = new SXSSFWorkbook(new XSSFWorkbook(new FileInputStream(filePath)), 1000,true);
} else {
wb = new SXSSFWorkbook(1000);
}
} catch (IOException e) {
logger.error(trackId + e.getMessage(), e);
}
- EOFException Unexpected 时报 stream inputeofexception unexpected时报stream unexpected internal stream error unexpected时报 原因 页面 eofexception unexpected unexpected_information desired_capabilities capabilities unexpected error encountered installing unexpected unexpected_eof_while_reading unexpected_information information unexpected