easypoi导出模板错误,

09:07:06.350 [main] ERROR cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil - Excel 模板错误
cn.afterturn.easypoi.exception.excel.ExcelExportException: Excel 模板错误
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.getAllDataColumns(ExcelExportOfTemplateUtil.java:681)
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.addListDataToExcel(ExcelExportOfTemplateUtil.java:139)
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.setValueForCellByMap(ExcelExportOfTemplateUtil.java:476)
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.parseTemplate(ExcelExportOfTemplateUtil.java:317)
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.createExcleByTemplate(ExcelExportOfTemplateUtil.java:244)
	at cn.afterturn.easypoi.excel.ExcelExportUtil.exportExcel(ExcelExportUtil.java:165)
	at cn.afterturn.easypoi.test.excel.template.TemplateExcelExportTest.fe_map(TemplateExcelExportTest.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:89)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:541)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:763)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:463)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:209)
Caused by: cn.afterturn.easypoi.exception.excel.ExcelExportException: for each 当中存在空字符串,请检查模板
	at cn.afterturn.easypoi.excel.export.template.ExcelExportOfTemplateUtil.getAllDataColumns(ExcelExportOfTemplateUtil.java:673)
	... 28 common frames omitted


出现如上错误,请检查是否是某个单元格带格式转换。
例如如下图的备注,就是带有时间格式转换的。
把这些附加的格式全部清除就可以了。
easypoi导出模板错误,_第1张图片

你可能感兴趣的:(poi)