当前位置:网站首页>[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
边栏推荐
- 消息队列:如何确保消息不会丢失
- Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
- How does mapbox switch markup languages?
- 拼多多新店如何获取免费流量,需要从哪些环节去优化,才能有效提升店内免费流量
- Sidecar mode
- 成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
- SAP ABAP BDC(批量数据通信)-018
- 4. Object mapping Mapster
- 不同网段之间实现GDB远程调试功能
- Taobao commodity details page API interface, Taobao commodity list API interface, Taobao commodity sales API interface, Taobao app details API interface, Taobao details API interface
猜你喜欢
WEB架构设计过程
SAP ABAP BDC (batch data communication) -018
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]
[paper reading] semi supervised left atrium segmentation with mutual consistency training
上海字节面试问题及薪资福利
基于NCF的多模块协同实例
Randomly generate session_ id
Realize GDB remote debugging function between different network segments
消息队列:消息积压如何处理?
随机推荐
集群、分布式、微服務的區別和介紹
原生小程序 之 input切換 text與password類型
R language [logic control] [mathematical operation]
Digital IC interview summary (interview experience sharing of large manufacturers)
Cve-2021-3156 vulnerability recurrence notes
Hcip seventh operation
毕业之后才知道的——知网查重原理以及降重举例
SAP webservice 测试出现404 Not found Service cannot be reached
Harmonyos practice - Introduction to development, analysis of atomized services
JVM the truth you need to know
消息队列:如何确保消息不会丢失
win配置pm2开机自启node项目
往图片添加椒盐噪声或高斯噪声
消息队列:消息积压如何处理?
pytorch_ 01 automatic derivation mechanism
How does mapbox switch markup languages?
《ClickHouse原理解析与应用实践》读书笔记(6)
Web Authentication API兼容版本信息
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree
mac版php装xdebug环境(m1版)