当前位置:网站首页>[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
边栏推荐
- Go language context explanation
- 【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
- JVM the truth you need to know
- Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
- SAP ABAP BDC(批量数据通信)-018
- R语言【逻辑控制】【数学运算】
- Différenciation et introduction des services groupés, distribués et microservices
- [reading of the paper] a multi branch hybrid transformer network for channel terminal cell segmentation
- 集群、分布式、微服務的區別和介紹
- ForkJoin最全详解(从原理设计到使用图解)
猜你喜欢

C#可空类型

5. 数据访问 - EntityFramework集成

What are the common message queues?

Industrial Finance 3.0: financial technology of "dredging blood vessels"

JVM the truth you need to know

【日常训练--腾讯精选50】235. 二叉搜索树的最近公共祖先

分布式全局ID生成方案

English grammar_ Noun possessive

Cve-2021-3156 vulnerability recurrence notes

SAP ABAP BDC (batch data communication) -018
随机推荐
Reptile exercises (III)
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
《2022中国低/无代码市场研究及选型评估报告》发布
Preliminary practice of niuke.com (9)
Web Authentication API兼容版本信息
Pinduoduo product details interface, pinduoduo product basic information, pinduoduo product attribute interface
2pc of distributed transaction solution
Modes of optical fiber - single mode and multimode
PTA 天梯赛练习题集 L2-004 搜索树判断
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
关于服装ERP,你知道多少?
Explication contextuelle du langage Go
Get the way to optimize the one-stop worktable of customer service
Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding
What EDA companies are there in China?
Simple case of SSM framework
Nodejs get client IP
Red Hat安装内核头文件
Unity keeps the camera behind and above the player
WEB架构设计过程