|
楼主 |
发表于 2015-8-18 10:17:55
|
显示全部楼层
不好意思啊,刚才弄错了。重新给你发一下
代码:
public static void makingVoucherProcessBeforeSaveCw_kjkmAction() {
// 获得table参数
Table table = (Table) ContextHelper.getActionContext().getParameter("Cw_kjkm");
// 获得所有新增的行
Iterator<Row> rows = table.iterator(com.justep.system.data.ModifyState.NEW);
while (rows.hasNext()) {
Row row = rows.next();
row.setValue("GXZ","test");
}
}
报错信息:
2015-08-18 10:14:02 excute stream action, params:{"actions":[{"accept":"application/json","action":"saveCw_kjkmAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"table":{"@type":"table","rows":[{"BZ":{"changed":"1"},"DLSJ":{"changed":"1"},"DLZ":{"changed":"1"},"FJDMC":{"changed":"1"},"GXSJ":{"changed":"1"},"GXZ":{"changed":"1"},"JDFX":{"changed":"1"},"KMDM":{"changed":"1","value":"98"},"KMFL":{"changed":"1","value":"nnnnnnnnnnnnnnnnnnnnn"},"KMJB":{"changed":"1","value":"nkLeaf"},"KMMC":{"changed":"1","value":"nnnnnnnnnnnnnnnnnnnnnnnnnnn"},"SXH":{"changed":"1"},"userdata":{"id":{"value":"0D065956F1CF4E03A32F37DA2E87D22D"},"isModified":true,"recordState":"new"},"version":{"changed":"1","value":0}}],"userdata":{"idColumnDefine":"Cw_kjkm","idColumnName":"Cw_kjkm","idColumnType":"String","model":"/BJBusWYST/cw/data","relationAlias":"BZ,DLSJ,DLZ,FJDMC,GXSJ,GXZ,JDFX,KMDM,KMFL,KMJB,KMMC,SXH,version","relationTypes":"String,DateTime,String,String,DateTime,String,String,String,String,String,String,String,Integer","relations":"Cw_kjkm.BZ,Cw_kjkm.DLSJ,Cw_kjkm.DLZ,Cw_kjkm.FJDMC,Cw_kjkm.GXSJ,Cw_kjkm.GXZ,Cw_kjkm.JDFX,Cw_kjkm.KMDM,Cw_kjkm.KMFL,Cw_kjkm.KMJB,Cw_kjkm.KMMC,Cw_kjkm.SXH,Cw_kjkm.version","updateMode":"whereVersion"}}},"process":"/BJBusWYST/cw/process/account/accountProcess"}]}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.justep.system.action.Engine.invokeActions(Native Method)
at com.justep.system.action.Engine.invokeActions(Unknown Source)
at com.justep.business.server.BusinessServer.doAction(Unknown Source)
at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServer.excute(Unknown Source)
at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at AccountProcess.accountProcessBeforeSaveCw_kjkmAction(AccountProcess.java:20)
... 27 more
|
|