ERROR errors.GrailsExceptionResolver NoClassDefFoundError occurred when processing request: [POST] /abroadOnBusiness/employee/importer - parameters:
importing: true
_action_importer: 导入
Could not initialize class org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument. Stacktrace follows:
org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [importer] of controller [org.bjzgh.system.EmployeeController] caused exception: Runtime error executing action
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:200)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Runtime error executing action
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
... 5 more
Caused by: org.apache.poi.POIXMLException: java.lang.reflect.InvocationTargetException
at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:61)
at org.apache.poi.POIXMLDocumentPart.read(POIXMLDocumentPart.java:277)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:186)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:182)
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:63)
at org.grails.plugins.excelimport.AbstractExcelImporter$$E0.read(AbstractExcelImporter.groovy:47)
at org.grails.plugins.excelimport.AbstractExcelImporter$$E0.read(AbstractExcelImporter.groovy:40)
at org.grails.plugins.excelimport.AbstractExcelImporter.<init>(AbstractExcelImporter.groovy:25)
at org.bjzgh.system.EmployeeExcelImporter.<init>(EmployeeExcelImporter.groovy:62)
at org.bjzgh.system.EmployeeController$$EOleKUlO.importer(EmployeeController.groovy:167)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at org.apache.poi.xssf.usermodel.XSSFFactory.createDocumentPart(XSSFFactory.java:59)
... 14 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument
at org.apache.poi.xssf.model.ThemesTable.<init>(ThemesTable.java:39)
... 15 more
推荐一个功能丰富、兼容性好、高性能的 Excel 文档基础库 Excelize: https://github.com/xuri/excelize
有回答的吗?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。