使用JExcel API写入excel文件时,我一直收到以下错误。 有什么想法吗?
Caused by: java.lang.NoSuchMethodError: jxl.biff.XFRecord$XFType.<init>(Ljxl/biff/XFRecord$1;)V
at jxl.biff.XFRecord.<clinit>(XFRecord.java:346)
at jxl.write.WritableWorkbook.<clinit>(WritableWorkbook.java:57)
at jxl.Workbook.createWorkbook(Workbook.java:411)
at jxl.Workbook.createWorkbook(Workbook.java:393)
at controleur.ExportController.exporterFormation(ExportController.java:194)
at controleur.ExportController.doPost(ExportController.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:301)
... 53 more
非常感谢!
好吧,我切换到Apache POI并且它工作得很好,感谢答案!
答案 0 :(得分:0)
当您在运行时与编译时使用的库版本不同时,通常会发生此类错误。验证Web服务器中部署的JExcel版本。