easyexcel 3.0.2 jdk1.8 解析数据报错

chhqkbe1  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(41)

建议先去看文档

快速开始常见问题

触发场景描述

上传excel 解析报错

触发Bug的代码

read(inputStream, clazz, listener).sheet(sheetNo).headRowNumber(rowNumber).doRead();

提示的异常或者没有达到的效果

anager.
2024-02-06 13:43:02.175 com.yotta.liangyi.securedb.business.service.MainService:chooseService:28 [http-nio-8087-exec-7] [] ERROR - Excel 处理异常: {}
com.alibaba.excel.exception.ExcelAnalysisException: java.lang.UnsatisfiedLinkError: sun.misc.Unsafe.copySwapMemory0(Ljava/lang/Object;JLjava/lang/Object;JJJ)V
at com.alibaba.excel.analysis.ExcelAnalyserImpl.(ExcelAnalyserImpl.java:60)
at com.alibaba.excel.ExcelReader.(ExcelReader.java:30)
at com.alibaba.excel.read.builder.ExcelReaderBuilder.build(ExcelReaderBuilder.java:193)
at com.alibaba.excel.read.builder.ExcelReaderBuilder.sheet(ExcelReaderBuilder.java:229)
at com.alibaba.excel.read.builder.ExcelReaderBuilder.sheet(ExcelReaderBuilder.java:221)
at com.yotta.liangyi.securedb.utils.EasyExcelUtils.readExcelWithModel(EasyExcelUtils.java:137)
at com.yotta.liangyi.securedb.business.service.CustomerDataService.parseExcel(CustomerDataService.java:34)
at com.yotta.liangyi.securedb.business.service.CustomerDataService.handle(CustomerDataService.java:99)
at com.yotta.liangyi.securedb.business.service.MainService.chooseService(MainService.java:26)
at com.yotta.liangyi.securedb.business.controller.ExcelHandleController.importCumstomer(ExcelHandleController.java:49)
at com.yotta.liangyi.securedb.business.controller.ExcelHandleController$$FastClassBySpringCGLIB$$a1983bcf.invoke()

mqkwyuun

mqkwyuun1#

能否贴出完整一点的代码,这样复现不了

相关问题