|
用js控制grid动态加载数据,涉及到先删除列(deleteColumn),再新增列(insertColumn),然后刷新数据,第一遍是没问题的,但是第二遍在刷新数据时报错。报错如下:
2015-07-10 11:50:23 excute Action error:<?xml version="1.0" encoding="UTF-8"?>
<action direct-execute="true" process="/landspvs/LandStatus/LandStatusAnly/process/LandStatusAnly/landStatusAnlyProcess" activity="mainActivity" action-flag="__action_0__" executor="" execute-context="" name="queryJH_LNDSTATMAction"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="offset"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Integer">0</xbiz:simple></parameter><parameter name="limit"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Integer">20</xbiz:simple></parameter><parameter name="columns"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[FYEAR,FADMINAREA,FBUILDLANDSUM,FFARMLANDSUM,FWASTELANDSUM,fFADMINAREACODE,JH_LNDSTATM]]></xbiz:simple></parameter><parameter name="variables"><xbiz:map><item key="Modal"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[/landspvs/common/data]]></xbiz:simple></item><item key="SQLid"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[LandStatusThreeAnly]]></xbiz:simple></item><item key="sqlMap"><xbiz:map><item key="1"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Long">2015</xbiz:simple></item></xbiz:map></item><item key="countMap"><xbiz:map/></item><item key="whereClause"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></parameter></parameters><translate-parameter data-type="row-list" transform-idcolumn="true" use-namespace="true" cellname-by-relation="false"><rows-config concept="JH_LNDSTATM" sequence="calculate0,,,,,,FYEAR,FADMINAREA,FYEAR,FADMINAREA,FBUILDLANDSUM,FFARMLANDSUM,FWASTELANDSUM,fFADMINAREACODE"/></translate-parameter></action>
com.justep.model.exception.ModelException: com.justep.model.exception.ModelException: 列名不能为空!
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.BusinessServerServlet.execService(Unknown Source)
at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.justep.model.exception.ModelException: 列名不能为空!
at com.justep.util.Utils.check(Unknown Source)
at com.justep.system.data.impl.TableMetaDataImpl.containsColumn(Unknown Source)
at com.justep.system.transform.Table2Row.transformUserData(Unknown Source)
at com.justep.system.transform.Table2Row.transform(Unknown Source)
at com.justep.system.transform.ResponseTransform.transformTable(Unknown Source)
at com.justep.system.transform.ResponseTransform.transformCompObject(Unknown Source)
at com.justep.system.transform.ResponseTransform.transform2(Unknown Source)
at com.justep.system.transform.ResponseTransform.transform(Unknown Source)
at com.justep.system.action.Engine.translateResult(Unknown Source)
at com.justep.system.action.Engine.invokeActions(Native Method)
... 21 more
|
|