首页 > 基础资料 博客日记
java.lang.NoSuchMethodError
2024-04-10 17:00:07基础资料围观519次
错误一:java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Cell.setCellValue(Ljava/time/LocalDateTime;)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile$1 (file:/D:/Program%20Files%20(x86)/apache-maven-3.6.1/mvn_repo/org/apache/poi/poi-ooxml/3.16/poi-ooxml-3.16.jar) to field java.io.FilterInputStream.in
WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2023-07-07 21:42:02.599 ERROR 26060 — [nio-8080-exec-1] c.h.m.exception.SkyGlobalException : java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.Cell.getCellType()Lorg/apache/poi/ss/usermodel/CellType;
分析:报错信息有提到“org.apache.poi”,是poi与easyexcel产生了冲突;
解决方法:
去掉以下pom依赖

错误二:Resource of path [static/template/2023-07-07.xlsx] not exist!
查询数据后,保存到服务器上的文件是好的,有数据的,但在客户端下载下来的表格是错误的。
解决方法:模板文件名或者文件路径有中文,把中文去掉,文件名改为英文的
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:jacktools123@163.com进行投诉反馈,一经查实,立即删除!
标签:
相关文章
最新发布
- PyTorch KernelAgent 源码解读 ---(3)--- orchestrator
- OpenClaw.NET 外部 CLI 预设系统:从零编写第三方 CLI 集成指南
- Agent Harness 的 Session Tree View:让每一个 Agent 做自己擅长的事情!
- 二、OpenCloudOS Server 9 系统 安装 Nginx
- AI 开发狂飙!.NET 11 Preview 4 原生集成向量搜索 + MCP 模板,EF Core 直接对标 RAG 应用
- Vibe Coding有多强?我只花了一天,就搓出了这个银行开户行查询网站!
- 100条cmd命令大全
- C# ESP32/STM32 轻量 Web 能力库:PicoServer.Nano
- 告别手动计算,SymPy 初识与 Manim 联动
- CC5 反序列化链分析

