相关错误日志如下:
ERROR com.linkage.fa.console.action.common.DownloadAction.download(DownloadAction.java:231) - 文件不存在或读取异常: D:\workspace\NOC-GD-1.19.0\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\smart.console\ssoexe\ApplicationImportResDetail_add.xls file=ssoexe/, fileName=ApplicationImportResDetail_add.xls, place=local
java.lang.IllegalArgumentException: The workbook already contains a sheet of this name
at org.apache.poi.hssf.usermodel.HSSFWorkbook.createSheet(HSSFWorkbook.java:790)
at com.linkage.fa.console.action.common.DownloadAction.getResGrpValidation(DownloadAction.java:438)
at com.linkage.fa.console.action.common.DownloadAction.rewriteResImportAdd(DownloadAction.java:257)
at com.linkage.fa.console.action.common.DownloadAction.download(DownloadAction.java:198)
at com.linkage.fa.console.action.common.DownloadAction.execute(DownloadAction.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370)
at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
查看了一些博客说是sheet名称重复,但是我本地的excel文件只有一个sheet,请教一下各位了