起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4929|回复: 4

[结贴] 在做工作流时,按demo做,出现了下面的错误

[复制链接]

22

主题

46

帖子

130

积分

初级会员

Rank: 2

积分
130
QQ
发表于 2019-7-16 13:35:56 | 显示全部楼层 |阅读模式
版本: 其它(帖子中说明) 小版本号:
数据库: Oracle 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
这个是按你们的例子来做的,部门审批流程
计算表达式findOrgUnitsHasRoleByCode(orgUnitsToOrgFIDs(findOrgUnitsHasCActivity(currentDeptFID(),true)),'',true)出错
编码:JUSTEP154064

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36071
发表于 2019-7-16 14:01:29 | 显示全部楼层
看tomcat控制台完整的错误信息
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

22

主题

46

帖子

130

积分

初级会员

Rank: 2

积分
130
QQ
 楼主| 发表于 2019-7-16 16:31:01 | 显示全部楼层
2019-07-16 16:29:21 开始-WINDOW生成中间文件: /UI2/erp/buy/process/apply/mainActivity.w
2019-07-16 16:29:22 结束-WINDOW生成中间文件: /UI2/erp/buy/process/apply/mainActivity.w
2019-07-16 16:29:22 开始-中间文件生成缓存文件: /UI2/erp/buy/process/apply/mainActivity.w
2019-07-16 16:29:22 结束-中间文件生成缓存文件: /UI2/erp/buy/process/apply/mainActivity.w
2019-07-16 16:29:22 加载模块:/erp/buy/process/apply ...
2019-07-16 16:29:42 excute stream action, params:{"accept":"application/json","action":"externalAdvanceProcessQueryAction","actionFlag":"__action_0__","activity":"mainActivity","contentType":"application/json","executeContext":"","executor":"","parameters":{"task":"E2F0448EC8C94DCAB1A2F61FF17D5B3B"},"process":"/erp/buy/process/apply/applyProcess"}
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        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 com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.system.action.Engine.invokeAction(Native Method)
        at com.justep.system.action.Engine.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
        at com.justep.system.process.ProcessUtils.advanceProcessQuery(Unknown Source)
        at ExternalProcessProcedure.advanceProcessQuery(ExternalProcessProcedure.java:26)
        ... 30 more
Caused by: com.justep.model.exception.ModelException: 编码: JUSTEP154064; 提示: 计算表达式findOrgUnitsHasRoleByCode(orgUnitsToOrgFIDs(findOrgUnitsHasCActivity(currentDeptFID(),true)),'',true)出错
        at com.justep.model.exception.ModelException.create(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.evaluate(Unknown Source)
        at com.justep.system.process.ExpressEngine.calculate(Unknown Source)
        at com.justep.system.process.ProcessRuleEngine.exprToOrgUnit(Unknown Source)
        at com.justep.system.process.ProcessRuleEngine.executorRangeToProcessControlItem(Unknown Source)
        at com.justep.system.process.ProcessRuleEngine.executeRuleToProcessControlItem(Unknown Source)
        at com.justep.system.process.ProcessRuleEngine.executeRuleToProcessControl(Unknown Source)
        at com.justep.system.process.ProcessQueryEngine.makeFlowIn(Unknown Source)
        at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
        at com.justep.system.process.ProcessQueryEngine.makeTo(Unknown Source)
        at com.justep.system.process.AdvanceProcessQueryEngine.doFlowOutNormal(Unknown Source)
        at com.justep.system.process.AdvanceProcessQueryEngine.doFlowOut(Unknown Source)
        at com.justep.system.process.AdvanceProcessQueryEngine.doExecute(Unknown Source)
        at com.justep.system.process.AdvanceProcessQueryEngine.execute(Unknown Source)
        at com.justep.system.process.ProcessEngine.advanceQuery(Unknown Source)
        at ProcessProcedure.advanceProcessQuery(ProcessProcedure.java:343)
        ... 41 more
Caused by: com.justep.model.exception.ModelException: 编码: JUSTEP154075; 提示: 调用函数findOrgUnitsHasRoleByCode出错
        at com.justep.model.exception.ModelException.create(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.functionExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.constExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.unaryExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.multiExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.addExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.compExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.notExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.andExpression(Unknown Source)
        at com.justep.system.ksql.parser.ExpressionImpl.orExpression(Unknown Source)
        ... 56 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        ... 65 more
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36071
发表于 2019-7-16 17:18:20 | 显示全部楼层
java.lang.IllegalArgumentException: argument type mismatch

参数设置的不正确,在选择表达式的时候函数的参数都有说明和例子,看一下说明
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

22

主题

46

帖子

130

积分

初级会员

Rank: 2

积分
130
QQ
 楼主| 发表于 2019-8-6 09:40:56 | 显示全部楼层
结贴吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-30 02:25 , Processed in 0.123385 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表