v6.2.4 gc打开文件报错
本帖最后由 Richard.Huang 于 2024-1-30 15:26 编辑产品:GcExcel
版本:V6.2.4
问题编号:DOCXLS-9298
LastReview:2024-01-30
此问题已在v7.0.1版本中修复。
public static void main(String[] args) {
String path = "L:\\test\\1001-0001-0001-库存现金明细余额表.xlsx";
FileInputStream fis = null;
FileOutputStream fos = null;
try {
fis = new FileInputStream(path);
Workbook workbook = new Workbook();
workbook.open(fis);
fos = new FileOutputStream(path);
workbook.save(fos);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (fis != null) {
fis.close();
}
} catch (Exception e) {
}
try {
if (fos != null) {
fos.close();
}
} catch (Exception e) {
}
}
}
17:52:44.557 DEBUG -1 Get instance of MypdfGraphics(New): com.grapecity.documents.excel.bH@1dd0e7c4
17:52:45.612 DEBUG -1 java.lang.IllegalArgumentException: Invalid char.-
17:52:45.613 DEBUG -1 java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.J.a(Unknown Source) ~
at com.grapecity.documents.excel.p.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:2992)
Caused by: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.ay.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.av.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.av.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.J.a(Unknown Source) ~
... 6 more
Caused by: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.ac.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.ac.n(Unknown Source) ~
at com.grapecity.documents.excel.p.c.ay.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.ay.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.av.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.av.a(Unknown Source) ~
at com.grapecity.documents.excel.p.c.J.a(Unknown Source) ~
... 6 more
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.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:2992)
Caused by: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.J.a(Unknown Source)
... 5 more
Caused by: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.ay.a(Unknown Source)
at com.grapecity.documents.excel.p.c.av.a(Unknown Source)
at com.grapecity.documents.excel.p.c.av.a(Unknown Source)
at com.grapecity.documents.excel.p.c.J.a(Unknown Source)
... 6 more
Caused by: java.lang.IllegalArgumentException: Invalid char.-
at com.grapecity.documents.excel.p.c.ac.a(Unknown Source)
at com.grapecity.documents.excel.p.c.ac.n(Unknown Source)
at com.grapecity.documents.excel.p.c.ay.a(Unknown Source)
... 10 more
打开保错
您好,
问题已复现,已将此问题记录下来进一步调研原因,待有进展贴中通知您。
本贴先做保留处理。 更新进展:
此问题计划于V7.0.1修复。 最新调研进展:本贴中提及的问题已经在GcExcelV7.0.1中得到修复,您可以通过升级GcExcel的版本来解决该问题
页:
[1]