当前位置:网站首页>[solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
[solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
2022-07-07 05:51:00 【Hu Hailong blog】
Report errors EasyExcel edition
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.2.3</version>
</dependency>
Wrong content
java.lang.NullPointerException
at com.alibaba.excel.analysis.v03.handlers.BofRecordHandler.processRecord(BofRecordHandler.java:49)
at com.alibaba.excel.analysis.v03.XlsSaxAnalyser.processRecord(XlsSaxAnalyser.java:158)
at org.apache.poi.hssf.eventusermodel.MissingRecordAwareHSSFListener.processRecord(MissingRecordAwareHSSFListener.java:203)
at org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener.processRecord(FormatTrackingHSSFListener.java:92)
at org.apache.poi.hssf.eventusermodel.HSSFRequest.processRecord(HSSFRequest.java:109)
at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.genericProcessEvents(HSSFEventFactory.java:179)
at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processEvents(HSSFEventFactory.java:136)
at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processWorkbookEvents(HSSFEventFactory.java:82)
at org.apache.poi.hssf.eventusermodel.HSSFEventFactory.processWorkbookEvents(HSSFEventFactory.java:54)
at com.alibaba.excel.analysis.v03.XlsSaxAnalyser.execute(XlsSaxAnalyser.java:137)
at com.alibaba.excel.analysis.ExcelAnalyserImpl.analysis(ExcelAnalyserImpl.java:115)
at com.alibaba.excel.ExcelReader.read(ExcelReader.java:182)
at com.alibaba.excel.ExcelReader.read(ExcelReader.java:172)
at com.alibaba.excel.read.builder.ExcelReaderSheetBuilder.doRead(ExcelReaderSheetBuilder.java:65)
In the use of EasyExcel Read xls Format excel When you specify sheet Error on page read message ,xlsx Don't complain
Solution
Upgrade to new easyexcel edition
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
</dependency>
Error reporting solution
边栏推荐
- SAP ABAP BDC(批量数据通信)-018
- 往图片添加椒盐噪声或高斯噪声
- 980. 不同路径 III DFS
- 原生小程序 之 input切換 text與password類型
- Go 語言的 Context 詳解
- Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
- 分布式全局ID生成方案
- What EDA companies are there in China?
- 消息队列:重复消息如何处理?
- Différenciation et introduction des services groupés, distribués et microservices
猜你喜欢
JVM the truth you need to know
404 not found service cannot be reached in SAP WebService test
4. 对象映射 - Mapping.Mapster
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
SAP ABAP BDC(批量数据通信)-018
5. 数据访问 - EntityFramework集成
Industrial Finance 3.0: financial technology of "dredging blood vessels"
C nullable type
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
CVE-2021-3156 漏洞复现笔记
随机推荐
Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
Explication contextuelle du langage Go
Reptile exercises (III)
R language [logic control] [mathematical operation]
nodejs获取客户端ip
力扣102题:二叉树的层序遍历
980. 不同路径 III DFS
Lombok plug-in
Go language context explanation
CVE-2021-3156 漏洞复现笔记
Web Authentication API兼容版本信息
谈fpga和asic的区别
消息队列:消息积压如何处理?
三级菜单数据实现,实现嵌套三级菜单数据
make makefile cmake qmake都是什么,有什么区别?
Input of native applet switches between text and password types
Mapbox Chinese map address
SAP ABAP BDC(批量数据通信)-018
async / await