首页 新闻 赞助 找找看

在controller接受xlsx文件,后台将其转换成stream流后用WorkbookFactory转换报错

0
悬赏园豆:50 [待解决问题]

步骤:
html提交xlsx文件
controller层能接受MultipartFile文件,并转换成inputstream流扔给business(service)层处理
business(service)层

Workbook wb = WorkbookFactory.create(is);
这一句报错,如下

这是在断点情况下报错提示:

[img=https://img-bbs.csdn.net/upload/201902/13/1550067977_839231.png][/img]

[img=https://img-bbs.csdn.net/upload/201902/13/1550068039_316973.png][/img]

再点击下一步会进入这个抛出的异常

[img=https://img-bbs.csdn.net/upload/201902/13/1550068930_659047.png][/img]

这个是完整运行后的报错提示

严重: Servlet.service() for servlet [app-servlet] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/openxmlformats/schemas/spreadsheetml/x2006/main/CTSheet] with root cause
java.lang.ClassNotFoundException: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheet
....

严重: Servlet.service() for servlet app-servlet threw exception
org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:123)
....

头很大,不知道问题出在哪,求教!

GroovRain的主页 GroovRain | 初学一级 | 园豆:152
提问于:2019-02-13 23:19
< >
分享
所有回答(1)
0

报错的图发了看一下

小白沙 | 园豆:105 (初学一级) | 2020-06-30 15:43
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册