当前位置:网站首页>【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
【已解决】记一次EasyExcel的报错【读取xls文件时全表读不报错,指定sheet名读取报错】
2022-07-06 23:56:00 【胡海龙Blog】
报错EasyExcel版本
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.2.3</version>
</dependency>
报错内容
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)
在使用EasyExcel读取xls格式的excel时指定sheet页读取报上面的错误,xlsx不报错
解决方案
升级到新的easyexcel版本
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
</dependency>
报错解决
边栏推荐
- win配置pm2开机自启node项目
- 1. AVL tree: left-right rotation -bite
- Simple case of SSM framework
- The 2022 China low / no code Market Research and model selection evaluation report was released
- bat 批示处理详解
- JVM (19) -- bytecode and class loading (4) -- talk about class loader again
- Photo selector collectionview
- Flinksql 读写pgsql
- Record a pressure measurement experience summary
- AI face editor makes Lena smile
猜你喜欢
![Paper reading [semantic tag enlarged xlnv model for video captioning]](/img/e3/633f6aac7a51ad7b3dc0e45dbe1f60.png)
Paper reading [semantic tag enlarged xlnv model for video captioning]

The navigation bar changes colors according to the route

Digital innovation driven guide

Leakage relay llj-100fs

MySQL数据库学习(8) -- mysql 内容补充

Make web content editable

Getting started with DES encryption

论文阅读【MM21 Pre-training for Video Understanding Challenge:Video Captioning with Pretraining Techniqu】

Web Authentication API兼容版本信息

WEB架构设计过程
随机推荐
The year of the tiger is coming. Come and make a wish. I heard that the wish will come true
论文阅读【MM21 Pre-training for Video Understanding Challenge:Video Captioning with Pretraining Techniqu】
Codeforces Round #416 (Div. 2) D. Vladik and Favorite Game
Flink SQL realizes reading and writing redis and dynamically generates hset key
nodejs获取客户端ip
AI face editor makes Lena smile
C#可空类型
架构设计的五个核心要素
async / await
SQL query: subtract the previous row from the next row and make corresponding calculations
How Alibaba cloud's DPCA architecture works | popular science diagram
说一说MVCC多版本并发控制器?
[JS component] date display.
WEB架构设计过程
Educational Codeforces Round 22 B. The Golden Age
微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位
集群、分布式、微服務的區別和介紹
Différenciation et introduction des services groupés, distribués et microservices
“多模态”概念
Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]