游标出现空指针
游标里面加上条件表达式报空指针了,cursor 游标后面接的函数都报空指针,没有找到什么函数判断游标,用了 bool 函数和!=null 都不能判断游标对象是否为空
报错如下:
com.scudata.common.RQException:
at com.scudata.cellset.datamodel.PgmCellSet.runNext2(PgmCellSet.java:2037)
at com.scudata.cellset.datamodel.PgmCellSet.run(PgmCellSet.java:2084)
at com.scudata.ide.spl.SheetSpl.runCellSet(SheetSpl.java:1367)
at com.scudata.ide.spl.SheetSpl$RunThread.run(SheetSpl.java:1618)
Caused by: java.lang.NullPointerException
at com.scudata.dw.Cursor.getModify(Cursor.java:2219)
at com.scudata.dw.Cursor.getData(Cursor.java:1305)
at com.scudata.dw.Cursor.get(Cursor.java:1223)
at com.scudata.dm.cursor.ICursor.fetch(ICursor.java:339)
at com.scudata.dm.cursor.ICursor.fetch(ICursor.java:322)
at com.scudata.expression.mfn.cursor.Fetch.calculate(Fetch.java:23)
at com.scudata.expression.operator.DotOperator.calculate(DotOperator.java:86)
at com.scudata.expression.Expression.calculate(Expression.java:160)
at com.scudata.cellset.datamodel.PgmNormalCell.calculate(PgmNormalCell.java:159)
at com.scudata.cellset.datamodel.PgmCellSet.runNext2(PgmCellSet.java:1949)
… 3 more
是最新的 jar 包吗?
是 20230228,是后面哪个版本的 jar 解决了
更新一下试试,后来又发布过更新的。
这个版本有点旧,不好定位问题。
集算器最新版官网下载报错了,请协调解决一下
您好,下载报错问题已解决,请重新下载
安装最新的集算器还是提示这个错误,如下:
报错信息:
Raqsoft is using log file:
D:\Program Files\raqsoft-20230520\esProc\log\esproc_20230608.log
[2023-06-08 09:52:33]
SEVERE: com.scudata.common.RQException: 单元格 D29 中有错误
null
com.scudata.common.RQException: 单元格 D29 中有错误
null
at com.scudata.cellset.datamodel.PgmCellSet.$1(Unknown Source:2037)
at com.scudata.cellset.datamodel.PgmCellSet.run(Unknown Source:2084)
at com.scudata.ide.spl.SheetSpl.runCellSet(SheetSpl.java:1387)
at com.scudata.ide.spl.SheetSpl$RunThread.run(SheetSpl.java:1638)
Caused by: java.lang.NullPointerException
at com.scudata.dw.Cursor.getModify(Unknown Source:2350)
at com.scudata.dw.Cursor.getData(Unknown Source:1431)
at com.scudata.dw.Cursor.get(Unknown Source:1349)
at com.scudata.dm.cursor.ICursor.fetch(Unknown Source:339)
at com.scudata.dm.cursor.ICursor.fetch(Unknown Source:322)
at com.scudata.expression.mfn.cursor.Fetch.calculate(Unknown Source:23)
at com.scudata.expression.operator.DotOperator.calculate(Unknown Source:86)
at com.scudata.expression.Expression.calculate(Unknown Source:160)
at com.scudata.cellset.datamodel.PgmNormalCell.calculate(Unknown Source:159)
at com.scudata.cellset.datamodel.PgmCellSet.$1(Unknown Source:1949)
… 3 more
修改了。更新一下试试。
我安装最新的集算器和重新打包测试可以了,👍