本帖最后由 Joestar.Xu 于 2024-11-7 15:00 编辑
产品:GcExcel
版本:V6.0.5
问题编号:DOCXLS-8711
last review: 2024-11-7
此问题目前已在V6.2.1修复,届时不会再抛出异常,但是导出文件形状损坏的问题依然存在。
如果要完全支持VML形状类型,预计得到V8之后的版本。
- public static void main(String[] args) {
- String path = "L:\\下载文件\\1405-0001-0001-合同履约成本明细表.xlsx";
- FileInputStream fis = null;
- try {
- fis = new FileInputStream(path);
- Workbook wk = GcExcelWorkBookUtils.newWorkBook();
- wk.open(fis);
- System.out.println();
- } catch (Exception e) {
- e.printStackTrace();
- } finally {
- IoUtil.close(fis);
- }
- }
复制代码- D:\environment\jdk1.8.0_131\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58475,suspend=y,server=n -javaagent:C:\Users\zhu.qiangfei\AppData\Local\JetBrains\IntelliJIdea2021.2\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath C:\Users\zhu.qiangfei\AppData\Local\Temp\classpath1345432760.jar cn.com.bdo.dgCenter.service.GcExcelService
- Connected to the target VM, address: '127.0.0.1:58475', transport: 'socket'
- java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.NullPointerException
- at com.grapecity.documents.excel.o.c.J.a(Unknown Source)
- at com.grapecity.documents.excel.Workbook.a(Unknown Source)
- at com.grapecity.documents.excel.Workbook.open(Unknown Source)
- at com.grapecity.documents.excel.Workbook.open(Unknown Source)
- at cn.com.bdo.dgCenter.service.GcExcelService.main(GcExcelService.java:2683)
- Caused by: java.lang.IllegalArgumentException: java.lang.NullPointerException
- at com.grapecity.documents.excel.o.c.J.a(Unknown Source)
- ... 5 more
- Caused by: java.lang.NullPointerException
- at com.grapecity.documents.excel.o.c.aq.a(Unknown Source)
- at com.grapecity.documents.excel.o.c.ax.a(Unknown Source)
- at com.grapecity.documents.excel.o.c.ax.a(Unknown Source)
- at com.grapecity.documents.excel.o.c.au.a(Unknown Source)
- at com.grapecity.documents.excel.o.c.au.a(Unknown Source)
- at com.grapecity.documents.excel.o.c.J.a(Unknown Source)
- ... 6 more
- Disconnected from the target VM, address: '127.0.0.1:58475', transport: 'socket'
- Process finished with exit code 0
复制代码
|
|