阅读:1892 回复:6
实名用户_517fa396
3

帖子

9

跟帖

815

积分

初级榴莲
初级榴莲
  • 社区居民

发起流程时,保存提示“发起流程失败”

楼主#
更多 发布于:2017-07-26 08:03
        网上下的一个流程用来练习,在发起的时,点击“保存”会弹出一个提示框,提示“发起流程失败“,如下:

       我查了Server\Log中的日志,具体如下:
------------------------------------------------------------------------------------------
06:48:46->Service Message:Starting
2017/7/26 6:48:57 : Cluster starting...
2017/7/26 6:48:57 : Cluster started.
2017/7/26 6:48:57 : Mounting LogicUnit "DefaultEngine"...
2017/7/26 6:53:29 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
2017/7/26 7:12:37 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
2017/7/26 7:13:23 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
2017/7/26 7:13:49 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
2017/7/26 7:25:07 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
2017/7/26 7:49:07 : Invoke LogicUnit DefaultEngine.InstanceManager._CreateInstance Exception,CFName=PurchaseManage.Parameter0=26a5bfca-7a65-4d0c-b519-cc88d3b06585Parameter1=PurchaseManageParameter2=1Parameter3=24c4ee83-3058-49b6-ac4b-ac8eef61c102Parameter4=nullParameter5=466bffa1-d6a5-441c-bf44-fc2c42fc3d43Parameter6=nullParameter7=nullParameter8=FalseParameter9=Parameter10=nullParameter11=-1
2017/7/26 7:49:07 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   at OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
2017/7/26 7:49:07 : Invoke LogicUnit DefaultEngine.InstanceManager.CreateInstance Exception,CFName=.Parameter0=26a5bfca-7a65-4d0c-b519-cc88d3b06585Parameter1=PurchaseManageParameter2=1Parameter3=24c4ee83-3058-49b6-ac4b-ac8eef61c102Parameter4=nullParameter5=466bffa1-d6a5-441c-bf44-fc2c42fc3d43Parameter6=nullParameter7=nullParameter8=FalseParameter9=Parameter10=nullParameter11=-1
2017/7/26 7:49:07 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   at OThinker.Clusterware.x9ea53fd36a4b0781.xb5e5f6f955fc3ca0(String x108a63fdfbe34327, String xfddc6ab564e933d7, String x74faa26c4a22e1cc, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   at OThinker.H3.Instance.InstanceManager.CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   at OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
2017/7/26 7:49:07 : User administrator connecting to LogicUnit DefaultEngine from IP 127.0.0.1.
------------------------------------------------------------------------------------------
请问这个问题如何解决?
t156965365
46

帖子

688

跟帖

4536

积分

H3 BPM互助团队
H3 BPM互助团队
  • 社区居民
1楼#
发布于:2017-07-26 08:32
要看Server\Log\DefaultEngine这下面的日志才能判断
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
2楼#
发布于:2017-07-26 09:22
你用的是什么版本?网上下的是一个什么流程包,有些流程包在发起节点完成事件后面有配置完成事件,你本地可能没有,所以报错。
建议你自己先建一个简单流程测试一下
实名用户_517fa396
3

帖子

9

跟帖

815

积分

初级榴莲
初级榴莲
  • 社区居民
3楼#
发布于:2017-07-27 07:01
\Server\Log\DefaultEngine中的日志,报错部分如下:

2017/7/26 7:49:07 : DefaultEngine: System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at OThinker.H3.Instance.RuntimeCache.AddInstance(InstanceContext Context)
   at OThinker.H3.Instance.RuntimeManager.CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String SequenceNo, String Name, String Originator, String OriginatedGroup, String OriginatedPost, String Department, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityCode, Int32 ParentActivityTokenId)
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
2017/7/26 7:49:07 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
2017/7/26 7:49:07 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   at OThinker.Clusterware.x9ea53fd36a4b0781.xb5e5f6f955fc3ca0(String x108a63fdfbe34327, String xfddc6ab564e933d7, String x74faa26c4a22e1cc, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   at OThinker.H3.Instance.InstanceManager.CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
2017/7/26 7:49:07 : DefaultEngine: url:http://localhost:8010/Portal/Sheets/SPurchaseManage.aspx?Mode=Originate&WorkflowCode=PurchaseManage&WorkflowVersion=1&PageAction=Close&T=944419&BizObjectID=26a5bfca-7a65-4d0c-b519-cc88d3b06585;msg:An item with the same key has already been added.
2017/7/26 7:49:51 : DefaultEngine: Created Instance, WorkflowCode=PurchaseManage, WorkflowVersion=1, Originator=466bffa1-d6a5-441c-bf44-fc2c42fc3d43, InstanceId=b608643a-912e-4849-a4be-7290304aeb82
2017/7/26 7:49:51 : DefaultEngine: InstanceManager.SendMessage->InstanceId=b608643a-912e-4849-a4be-7290304aeb82, InstanceMessageType=Start
2017/7/26 7:49:51 : DefaultEngine: InstanceManager.SendMessage->InstanceId=b608643a-912e-4849-a4be-7290304aeb82, InstanceMessageType=ExceptionThrown
2017/7/26 7:49:51 : DefaultEngine: InstanceId=b608643a-912e-4849-a4be-7290304aeb82, InstanceMessageType=Start, Disposal=Drop, Emergency=High
2017/7/26 7:49:51 : DefaultEngine: InstanceId=b608643a-912e-4849-a4be-7290304aeb82, InstanceMessageType=ExceptionThrown, Disposal=Success, Emergency=Normal
2017/7/26 7:59:52 : DefaultEngine: System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at OThinker.H3.Instance.RuntimeCache.AddInstance(InstanceContext Context)
   at OThinker.H3.Instance.RuntimeManager.CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String SequenceNo, String Name, String Originator, String OriginatedGroup, String OriginatedPost, String Department, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityCode, Int32 ParentActivityTokenId)
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
2017/7/26 7:59:52 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
2017/7/26 7:59:52 : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added.
   at OThinker.H3.Instance.InstanceManager._CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   at OThinker.Clusterware.x9ea53fd36a4b0781.xb5e5f6f955fc3ca0(String x108a63fdfbe34327, String xfddc6ab564e933d7, String x74faa26c4a22e1cc, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   at OThinker.H3.Instance.InstanceManager.CreateInstance(String BizObjectId, String WorkflowCode, Int32 WorkflowVersion, String InstanceId, String InstanceName, String Originator, String OriginatedGroup, String OriginatedPost, Boolean IsChildInstance, String ParentInstanceID, String ParentActivityName, Int32 ParentActivityTokenId)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
2017/7/26 7:59:52 : DefaultEngine: url:http://localhost:8010/Portal/Sheets/SPurchaseManage.aspx?Mode=Originate&WorkflowCode=PurchaseManage&WorkflowVersion=1&PageAction=Close&T=170278&BizObjectID=a5565e3c-43d0-48e6-9a8b-6e638e0a1df3;msg:An item with the same key has already been added.
2017/7/26 8:00:00 : DefaultEngine: Created Instance, WorkflowCode=PurchaseManage, WorkflowVersion=1, Originator=466bffa1-d6a5-441c-bf44-fc2c42fc3d43, InstanceId=41f5a96c-048a-4c52-ba8e-03a14024851e
2017/7/26 8:00:00 : DefaultEngine: InstanceManager.SendMessage->InstanceId=41f5a96c-048a-4c52-ba8e-03a14024851e, InstanceMessageType=Start
2017/7/26 8:00:01 : DefaultEngine: InstanceManager.SendMessage->InstanceId=41f5a96c-048a-4c52-ba8e-03a14024851e, InstanceMessageType=ExceptionThrown
2017/7/26 8:00:01 : DefaultEngine: InstanceId=41f5a96c-048a-4c52-ba8e-03a14024851e, InstanceMessageType=Start, Disposal=Drop, Emergency=High
2017/7/26 8:00:01 : DefaultEngine: InstanceId=41f5a96c-048a-4c52-ba8e-03a14024851e, InstanceMessageType=ExceptionThrown, Disposal=Success, Emergency=Normal

麻烦帮忙分析下,谢谢。
实名用户_517fa396
3

帖子

9

跟帖

815

积分

初级榴莲
初级榴莲
  • 社区居民
4楼#
发布于:2017-07-27 07:07
H3的版本是9.2.7.10511
t156965365
46

帖子

688

跟帖

4536

积分

H3 BPM互助团队
H3 BPM互助团队
  • 社区居民
5楼#
发布于:2017-07-27 08:57
实名用户_517fa396:H3的版本是9.2.7.10511回到原帖
你这个是自定义表单的,应该是在保存里面做了什么,提示有相同的key值.
初学的话,还是从系统表单开始做起,自定义表单后面再研究.
实名用户_9a69fdbe
0

帖子

3

跟帖

50

积分

初级榴莲
初级榴莲
6楼#
发布于:2018-11-13 17:09
武汉技术支持团队:你用的是什么版本?网上下的是一个什么流程包,有些流程包在发起节点完成事件后面有配置完成事件,你本地可能没有,所以报错。
建议你自己先建一个简单流程测试一下
回到原帖
2018/11/13 17:03:37 : System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Exception: 大东海.xlsx Can't be converted to a Attachment type,because the type is not matching,target type is OThinker.H3.Data.Attachment[].
   在 OThinker.H3.DataModel.BizObjectSchemaManager.InvokeMethod(String SchemaCode, String MethodName, String UserId, BoolMatchValue Transactional, BizObjectType BizObjectType, String ObjectId, BizStructure Params, BizObjectSchema& Schema, MethodGroupSchema& Method, BizObjectPropertyTrack[]& Tracks)
   在 OThinker.H3.Apps.AppManager.InvokeMethod(String SchemaCode, String MethodName, String UserId, BoolMatchValue Transactional, BizObjectType BizObjectType, String ObjectId, BizStructure Params, BizObjectSchema& Schema, MethodGroupSchema& Method, BizObjectPropertyTrack[]& Tracks)
   在 OThinker.H3.DataModel.BizObjectManager._InvokeBizObjectMethod(String UserId, BoolMatchValue Transactional, String SchemaCode, BizObjectType BizObjectType, String ObjectId, String MethodName, BizStructure Params)
   --- 内部异常堆栈跟踪的结尾 ---
   在 OThinker.Clusterware.x9ea53fd36a4b0781.x8fac6c070aaf37e6(Boolean xc5b34ddd2179dc56, String x74faa26c4a22e1cc, String x108a63fdfbe34327, String xc67bed94fbe02767, String x36d12ad1eed49cd3, Object[] x69ff6456126e289b, Object[]& xec53d23bc7994bff)
   在 OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
我的日志是这个。。
游客

返回顶部