|
楼主 |
发表于 2016-3-25 17:08:51
|
显示全部楼层
谢谢,还是数据权限问题,我对查询页面中的queryaction按照参数策略设置了数据权限,表达式是:And(OA_GWorkersInfor1.fPersonID=:currentPersonID()),但是运行过程中报错了,控制台报错信息:
2016-03-25 16:51:36 excute stream action, params:{"accept":"application/json","action":"queryOA_GWorkersInfor1Action","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"columns":"OA_GWorkersInfor1,fBirthDay,fCardID,fCode,fCompany,fDepartment,fDeptID,fEducation,fEmail,fEmergencyPhone,fEntryDate,fFamilyAddress,fGrade,fGraduateSchool,fIsManpowerRecruitment,fMarriageState,fMobilePhone,fName,fNationality,fNativePlace,fPartyDate,fPerFullID,fPersonID,fPolicitalStatus,fPositionState,fRegisterResidence,fRemark,fSex,fTelephone,version","limit":20,"offset":0,"variables":{}},"process":"/OA/HumanResourceManagement/process/PersonBaseInfor/personBaseInforProcess","translateParameter":{"cellnameByRelation":false,"dataType":"row-list","includeState":true,"rowsConfig":{"concept":"OA_GWorkersInfor1","sequence":"OA_GWorkersInfor1,fBirthDay,fCardID,fCode,fCompany,fDepartment,fDeptID,fEducation,fEmail,fEmergencyPhone,fEntryDate,fFamilyAddress,fGrade,fGraduateSchool,fIsManpowerRecruitment,fMarriageState,fMobilePhone,fName,fNationality,fNativePlace,fPartyDate,fPerFullID,fPersonID,fPolicitalStatus,fPositionState,fRegisterResidence,fRemark,fSex,fTelephone,version"},"transformIdcolumn":true,"useNamespace":true}}
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: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT OA_GWorkersInfor1.* FROM OA_GWorkersInfor1 OA_GWorkersInfor1 LIMIT 0, 20
--> sql:
--> binds: []
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.BizData.query(Unknown Source)
at BizProcedure.query(BizProcedure.java:12)
... 27 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.justep.system.data.DataPermission
... 32 more
为什么会报这样的错误呢?表达式格式都没错。请您帮忙解答一下,不甚感激! |
|