1
回答
Grails 中导入Excel报错
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   


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
举报
想念缤纷
发帖于3年前 1回/840阅
顶部