点击文件名下载附件
比如这个文件,在spjs中自定义单元格插入了图片后,生成的ssjson文件。
用gcexcel 4.1.2打开,在workbook.fromJson这一步就会报异常,完全无法使用。错误信息如下:
java.lang.IllegalStateException: JsonParser#getInt() is valid only VALUE_NUMBER parser state. But current parser state is VALUE_STRING
at org.glassfish.json.JsonParserImpl.getInt(JsonParserImpl.java:107)
at com.grapecity.documents.excel.n.b.s.i(Unknown Source)
at com.grapecity.documents.excel.n.b.U.b(Unknown Source)
at com.grapecity.documents.excel.n.b.U.a(Unknown Source)
at com.grapecity.documents.excel.n.b.U.b(Unknown Source)
at com.grapecity.documents.excel.n.b.U.a(Unknown Source)
at com.grapecity.documents.excel.n.b.U.a(Unknown Source)
at com.grapecity.documents.excel.n.b.T.a(Unknown Source)
at com.grapecity.documents.excel.n.b.T.a(Unknown Source)
at com.grapecity.documents.excel.n.b.T.a(Unknown Source)
at com.grapecity.documents.excel.Workbook.fromJson(Unknown Source)
at com.grapecity.documents.excel.Workbook.fromJson(Unknown Source)
at DefineCellOutputTest.exportExcel(DefineCellOutputTest.java:67)
at DefineCellOutputTest.main(DefineCellOutputTest.java:10)