|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
在JAva中执行以下代码出错:
//判断当前操作者是否拥有指定动作的权限
Operator operator = ContextHelper.getOperator();
boolean hasPermission = operator.hasActionPermission(process, activity, action, operator.getID()) ;
机构下的用户,运行都报错
system 用户 如果无机构 不报错,system如果在机构下,也报错
错误代码:
- 2014-09-24 20:11:02 action:<?xml version="1.0" encoding="UTF-8"?>
- <action direct-execute="false" process="/OA/Estate/process/client/clientProcess" activity="clientManageActivity1" action-flag="__action_0__" executor="1694BB4677554F0FB979D4695138D316" execute-context="" name="rightsManagementAction"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="type"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[management]]></xbiz:simple></parameter><parameter name="operatorData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[OA_Est_customer]]></xbiz:simple></parameter><parameter name="paramMap"><xbiz:map><item key="OA_Est_customer"><xbiz:map><item key="url"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="process"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="activity"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="masterData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="deleteMech"><xbiz:map><item key="Unconditional"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="Business"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Roles"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Unlimited"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="Check"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Related"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Creator"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Director"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="CurrentData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="DeleteAssociation"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="RolesPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="BusinessPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></item><item key="newMech"><xbiz:map><item key="Unconditional"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Roles"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="Business"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="CurrentData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="NewAssociation"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="RolesPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[operateNewAction]]></xbiz:simple></item><item key="BusinessPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></item><item key="editMech"><xbiz:map><item key="Unconditional"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">true</xbiz:simple></item><item key="Business"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Roles"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="CurrentData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="EditAssociation"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Unlimited"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Creator"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Director"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Check"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Related"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="RolesPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="BusinessPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></item><item key="viewMech"><xbiz:map><item key="Unconditional"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Roles"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="RolesPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="BusinessPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></item><item key="checkMech"><xbiz:map><item key="Unconditional"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Business"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Roles"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Unlimited"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Creator"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="Reset"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="CurrentData"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="CheckAssociation"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#Boolean">false</xbiz:simple></item><item key="RolesPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item><item key="BusinessPermissions"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"/></item></xbiz:map></item></xbiz:map></item><item key="operator"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[new]]></xbiz:simple></item><item key="OperatorID"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[1694BB4677554F0FB979D4695138D316]]></xbiz:simple></item><item key="executor"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[1694BB4677554F0FB979D4695138D316]]></xbiz:simple></item></xbiz:map></parameter></parameters></action>
- java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:592)
- 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.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:595)
- Caused by: com.justep.exception.BusinessException: 编码: JUSTEP050006; 提示: 参数"fullName"不允许为空
- at com.justep.exception.BusinessException.create(Unknown Source)
- at com.justep.util.Utils.check(Unknown Source)
- at com.justep.model.ModelUtils.getProcess(Unknown Source)
- at com.justep.system.opm.Operator.hasActionPermission(Unknown Source)
- at Estate.rolesPrivilegeAudit(Estate.java:721)
- at Estate.privilegeAudit(Estate.java:670)
- at Estate.rightsManagement(Estate.java:586)
- ... 26 more
复制代码 请教如何解决?
|
|