当前位置:网站首页>[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
边栏推荐
- 集群、分布式、微服务的区别和介绍
- 不同网段之间实现GDB远程调试功能
- 常用消息队列有哪些?
- What EDA companies are there in China?
- Web architecture design process
- 980. 不同路径 III DFS
- 架构设计的五个核心要素
- Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
- What are the common message queues?
- 如何提高网站权重
猜你喜欢

Sidecar mode

Message queue: how to deal with message backlog?

OpenSergo 即将发布 v1alpha1,丰富全链路异构架构的服务治理能力

SAP webservice 测试出现404 Not found Service cannot be reached

What are the common message queues?

Flink SQL realizes reading and writing redis and dynamically generates hset key

Three level menu data implementation, nested three-level menu data

sql查询:将下一行减去上一行,并做相应的计算

Simple case of SSM framework

Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding
随机推荐
集群、分布式、微服務的區別和介紹
原生小程序 之 input切换 text与password类型
线性回归
Hcip eighth operation
Dynamic memory management
拼多多新店如何获取免费流量,需要从哪些环节去优化,才能有效提升店内免费流量
分布式全局ID生成方案
Flinksql 读写pgsql
产业金融3.0:“疏通血管”的金融科技
4. 对象映射 - Mapping.Mapster
STM32 key state machine 2 - state simplification and long press function addition
Unity keeps the camera behind and above the player
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
R语言【逻辑控制】【数学运算】
消息队列:消息积压如何处理?
如何提高网站权重
淘宝店铺发布API接口(新),淘宝oAuth2.0店铺商品API接口,淘宝商品发布API接口,淘宝商品上架API接口,一整套发布上架店铺接口对接分享
5阶多项式轨迹
sql查询:将下一行减去上一行,并做相应的计算
驱动开发中platform设备驱动架构详解