该帖已经被评为良好帖
|
|
---|---|
作者 | 正文 |
发表时间:2008-11-17
想问一下 simple.jpdl 这个文件是在哪里的啊,我找不到这个文件,而且我只要 test connection 的时候就报错了,好象是连不上服务器。
|
|
返回顶楼 | |
发表时间:2008-12-04
原来博主就是林信良啊
汗,我还早就收藏了这个blog呢,居然现在才知道 |
|
返回顶楼 | |
发表时间:2008-12-11
按林兄写的代码测试,已经在数据库部署成功,但第一个4000元测试就过不去了,林兄能麻烦你看下是什么问题造成异常吗?是在'com.firstflow.task.NewApplicationAssignmentHandler' 出现问题的
Thu Dec 11 09:59:15 CST 2008员工linly发起借款流程 09:59:15,671 [main] DEBUG Token : token[10] is unlocked by token[10] 09:59:15,671 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,671 [main] DEBUG NullableType : returning 'K' as column: CLASS2_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning '填写借款申请' as column: NAME3_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning null as column: DESCRIPT4_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning '2' as column: PROCESSD5_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ISASYNC6_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ISASYNCE7_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning null as column: ACTION8_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning null as column: SUPERSTATE9_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning '4' as column: SIGNAL15_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'true' as column: CREATET16_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ENDTASKS17_1_0_ 09:59:15,703 [main] DEBUG GraphElement : event 'node-enter' on 'TaskNode(填写借款申请)' for 'Token(/)' 09:59:15,703 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,703 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,718 [main] DEBUG NullableType : returning '5' as column: ID1_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'Task_AssignToInitiator' as column: NAME2_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: DESCRIPT3_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '2' as column: PROCESSD4_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'false' as column: ISBLOCKING5_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'true' as column: ISSIGNAL6_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: CONDITION7_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: DUEDATE8_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '3' as column: PRIORITY9_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: ACTORID10_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: POOLEDA11_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '6' as column: TASKMGM12_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '11' as column: TASKNODE13_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: STARTSTATE14_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning '6' as column: ASSIGNM15_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning null as column: SWIMLANE16_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning null as column: TASKCON17_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning '11' as column: TASKNODE13_1_ 09:59:15,734 [main] DEBUG NullableType : returning '5' as column: ID1_1_ 09:59:15,734 [main] WARN StatefulPersistenceContext : Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 09:59:15,765 [main] DEBUG NullableType : binding '5' to parameter: 1 09:59:15,781 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,781 [main] DEBUG NullableType : binding 'Task_AssignToInitiator' to parameter: 2 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 3 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 4 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 5 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 6 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 7 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 8 09:59:15,796 [main] DEBUG NullableType : binding '3' to parameter: 9 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 10 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 11 09:59:15,796 [main] DEBUG NullableType : binding 'true' to parameter: 12 09:59:15,796 [main] DEBUG NullableType : binding 'true' to parameter: 13 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 14 09:59:15,812 [main] DEBUG NullableType : binding '5' to parameter: 15 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 16 09:59:15,812 [main] DEBUG NullableType : binding '10' to parameter: 17 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 18 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 19 09:59:15,828 [main] DEBUG GraphElement : event 'task-create' on 'Task(Task_AssignToInitiator)' for 'Token(/)' 09:59:15,828 [main] DEBUG NullableType : binding '5' to parameter: 1 09:59:15,828 [main] DEBUG NullableType : binding '6' to parameter: 1 09:59:15,843 [main] DEBUG NullableType : returning 'com.firstflow.task.NewApplicationAssignmentHandler' as column: CLASSNAME2_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning null as column: CONFIGUR3_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning 'field' as column: CONFIGTYPE4_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning '2' as column: PROCESSD5_6_0_ 09:59:15,843 [main] DEBUG JbpmContext : closing jbpmContext org.jbpm.JbpmContext@1f26605 09:59:15,843 [main] DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1ac1e22 09:59:15,859 [main] DEBUG DbPersistenceService : committing hibernate transaction org.hibernate.transaction.JDBCTransaction@cd4544 09:59:15,859 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,859 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,859 [main] DEBUG NullableType : binding '6' to parameter: 3 09:59:15,859 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,875 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,875 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,875 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,875 [main] DEBUG NullableType : binding '20' to parameter: 3 09:59:15,906 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,906 [main] DEBUG NullableType : binding 'initiator' to parameter: 2 09:59:15,906 [main] DEBUG NullableType : binding '10' to parameter: 4 09:59:15,921 [main] DEBUG NullableType : binding '10' to parameter: 5 09:59:15,921 [main] DEBUG NullableType : binding '10' to parameter: 6 09:59:15,921 [main] DEBUG NullableType : binding 'linly' to parameter: 7 09:59:16,000 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 2 09:59:16,000 [main] DEBUG NullableType : binding '2008-12-11 09:59:14' to parameter: 3 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 4 09:59:16,000 [main] DEBUG NullableType : binding '2008-12-11 09:59:15' to parameter: 5 09:59:16,000 [main] DEBUG NullableType : binding '6' to parameter: 6 09:59:16,000 [main] DEBUG NullableType : binding 'true' to parameter: 7 09:59:16,000 [main] DEBUG NullableType : binding 'false' to parameter: 8 09:59:16,000 [main] DEBUG NullableType : binding 'false' to parameter: 9 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 10 09:59:16,000 [main] DEBUG NullableType : binding '11' to parameter: 11 09:59:16,000 [main] DEBUG NullableType : binding '10' to parameter: 12 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 13 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 14 09:59:16,000 [main] DEBUG NullableType : binding '10' to parameter: 15 09:59:16,015 [main] DEBUG NullableType : binding '0' to parameter: 16 09:59:16,015 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,015 [main] DEBUG NullableType : binding null to parameter: 2 09:59:16,015 [main] DEBUG NullableType : binding '2008-12-11 09:59:14' to parameter: 3 09:59:16,015 [main] DEBUG NullableType : binding null to parameter: 4 09:59:16,031 [main] DEBUG NullableType : binding 'false' to parameter: 5 09:59:16,031 [main] DEBUG NullableType : binding '2' to parameter: 6 09:59:16,031 [main] DEBUG NullableType : binding '10' to parameter: 7 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 8 09:59:16,031 [main] DEBUG NullableType : binding '10' to parameter: 9 09:59:16,031 [main] DEBUG NullableType : binding '0' to parameter: 10 09:59:16,031 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,031 [main] DEBUG NullableType : binding 'Task_AssignToInitiator' to parameter: 2 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 3 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 4 Exception in thread "main" org.jbpm.graph.def.DelegationException: com.firstflow.task.NewApplicationAssignmentHandler at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:259) at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:198) at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:197) at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168) at org.jbpm.graph.def.Node.enter(Node.java:318) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$395302c8.enter(<generated>) at org.jbpm.graph.def.Transition.take(Transition.java:151) at org.jbpm.graph.def.Node.leave(Node.java:393) at org.jbpm.graph.node.StartState.leave(StartState.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$395302c8.leave(<generated>) at org.jbpm.graph.exe.Token.signal(Token.java:192) at org.jbpm.graph.exe.Token.signal(Token.java:140) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270) at com.sample.FirstFlowProcessDBTest.createProcessInstance(FirstFlowProcessDBTest.java:62) at com.sample.FirstFlowProcessDBTest.test4000YuanApplication(FirstFlowProcessDBTest.java:25) at com.sample.FirstFlowProcessDBTest.main(FirstFlowProcessDBTest.java:19) Caused by: java.lang.ClassCastException: com.firstflow.task.NewApplicationAssignmentHandler at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:266) at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:244) ... 25 more |
|
返回顶楼 | |
发表时间:2008-12-13
sevencolor 写道 按林兄写的代码测试,已经在数据库部署成功,但第一个4000元测试就过不去了,林兄能麻烦你看下是什么问题造成异常吗?是在'com.firstflow.task.NewApplicationAssignmentHandler' 出现问题的 Thu Dec 11 09:59:15 CST 2008员工linly发起借款流程 09:59:15,671 [main] DEBUG Token : token[10] is unlocked by token[10] 09:59:15,671 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,671 [main] DEBUG NullableType : returning 'K' as column: CLASS2_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning '填写借款申请' as column: NAME3_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning null as column: DESCRIPT4_1_0_ 09:59:15,671 [main] DEBUG NullableType : returning '2' as column: PROCESSD5_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ISASYNC6_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ISASYNCE7_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning null as column: ACTION8_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning null as column: SUPERSTATE9_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning '4' as column: SIGNAL15_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'true' as column: CREATET16_1_0_ 09:59:15,687 [main] DEBUG NullableType : returning 'false' as column: ENDTASKS17_1_0_ 09:59:15,703 [main] DEBUG GraphElement : event 'node-enter' on 'TaskNode(填写借款申请)' for 'Token(/)' 09:59:15,703 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,703 [main] DEBUG NullableType : binding '11' to parameter: 1 09:59:15,718 [main] DEBUG NullableType : returning '5' as column: ID1_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'Task_AssignToInitiator' as column: NAME2_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: DESCRIPT3_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '2' as column: PROCESSD4_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'false' as column: ISBLOCKING5_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning 'true' as column: ISSIGNAL6_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: CONDITION7_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: DUEDATE8_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '3' as column: PRIORITY9_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: ACTORID10_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: POOLEDA11_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '6' as column: TASKMGM12_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning '11' as column: TASKNODE13_10_0_ 09:59:15,718 [main] DEBUG NullableType : returning null as column: STARTSTATE14_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning '6' as column: ASSIGNM15_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning null as column: SWIMLANE16_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning null as column: TASKCON17_10_0_ 09:59:15,734 [main] DEBUG NullableType : returning '11' as column: TASKNODE13_1_ 09:59:15,734 [main] DEBUG NullableType : returning '5' as column: ID1_1_ 09:59:15,734 [main] WARN StatefulPersistenceContext : Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == 09:59:15,765 [main] DEBUG NullableType : binding '5' to parameter: 1 09:59:15,781 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,781 [main] DEBUG NullableType : binding 'Task_AssignToInitiator' to parameter: 2 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 3 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 4 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 5 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 6 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 7 09:59:15,796 [main] DEBUG NullableType : binding null to parameter: 8 09:59:15,796 [main] DEBUG NullableType : binding '3' to parameter: 9 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 10 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 11 09:59:15,796 [main] DEBUG NullableType : binding 'true' to parameter: 12 09:59:15,796 [main] DEBUG NullableType : binding 'true' to parameter: 13 09:59:15,796 [main] DEBUG NullableType : binding 'false' to parameter: 14 09:59:15,812 [main] DEBUG NullableType : binding '5' to parameter: 15 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 16 09:59:15,812 [main] DEBUG NullableType : binding '10' to parameter: 17 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 18 09:59:15,812 [main] DEBUG NullableType : binding null to parameter: 19 09:59:15,828 [main] DEBUG GraphElement : event 'task-create' on 'Task(Task_AssignToInitiator)' for 'Token(/)' 09:59:15,828 [main] DEBUG NullableType : binding '5' to parameter: 1 09:59:15,828 [main] DEBUG NullableType : binding '6' to parameter: 1 09:59:15,843 [main] DEBUG NullableType : returning 'com.firstflow.task.NewApplicationAssignmentHandler' as column: CLASSNAME2_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning null as column: CONFIGUR3_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning 'field' as column: CONFIGTYPE4_6_0_ 09:59:15,843 [main] DEBUG NullableType : returning '2' as column: PROCESSD5_6_0_ 09:59:15,843 [main] DEBUG JbpmContext : closing jbpmContext org.jbpm.JbpmContext@1f26605 09:59:15,843 [main] DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1ac1e22 09:59:15,859 [main] DEBUG DbPersistenceService : committing hibernate transaction org.hibernate.transaction.JDBCTransaction@cd4544 09:59:15,859 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,859 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,859 [main] DEBUG NullableType : binding '6' to parameter: 3 09:59:15,859 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,875 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,875 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,875 [main] DEBUG NullableType : binding '10' to parameter: 2 09:59:15,875 [main] DEBUG NullableType : binding '20' to parameter: 3 09:59:15,906 [main] DEBUG NullableType : binding '0' to parameter: 1 09:59:15,906 [main] DEBUG NullableType : binding 'initiator' to parameter: 2 09:59:15,906 [main] DEBUG NullableType : binding '10' to parameter: 4 09:59:15,921 [main] DEBUG NullableType : binding '10' to parameter: 5 09:59:15,921 [main] DEBUG NullableType : binding '10' to parameter: 6 09:59:15,921 [main] DEBUG NullableType : binding 'linly' to parameter: 7 09:59:16,000 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 2 09:59:16,000 [main] DEBUG NullableType : binding '2008-12-11 09:59:14' to parameter: 3 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 4 09:59:16,000 [main] DEBUG NullableType : binding '2008-12-11 09:59:15' to parameter: 5 09:59:16,000 [main] DEBUG NullableType : binding '6' to parameter: 6 09:59:16,000 [main] DEBUG NullableType : binding 'true' to parameter: 7 09:59:16,000 [main] DEBUG NullableType : binding 'false' to parameter: 8 09:59:16,000 [main] DEBUG NullableType : binding 'false' to parameter: 9 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 10 09:59:16,000 [main] DEBUG NullableType : binding '11' to parameter: 11 09:59:16,000 [main] DEBUG NullableType : binding '10' to parameter: 12 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 13 09:59:16,000 [main] DEBUG NullableType : binding null to parameter: 14 09:59:16,000 [main] DEBUG NullableType : binding '10' to parameter: 15 09:59:16,015 [main] DEBUG NullableType : binding '0' to parameter: 16 09:59:16,015 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,015 [main] DEBUG NullableType : binding null to parameter: 2 09:59:16,015 [main] DEBUG NullableType : binding '2008-12-11 09:59:14' to parameter: 3 09:59:16,015 [main] DEBUG NullableType : binding null to parameter: 4 09:59:16,031 [main] DEBUG NullableType : binding 'false' to parameter: 5 09:59:16,031 [main] DEBUG NullableType : binding '2' to parameter: 6 09:59:16,031 [main] DEBUG NullableType : binding '10' to parameter: 7 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 8 09:59:16,031 [main] DEBUG NullableType : binding '10' to parameter: 9 09:59:16,031 [main] DEBUG NullableType : binding '0' to parameter: 10 09:59:16,031 [main] DEBUG NullableType : binding '1' to parameter: 1 09:59:16,031 [main] DEBUG NullableType : binding 'Task_AssignToInitiator' to parameter: 2 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 3 09:59:16,031 [main] DEBUG NullableType : binding null to parameter: 4 Exception in thread "main" org.jbpm.graph.def.DelegationException: com.firstflow.task.NewApplicationAssignmentHandler at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:259) at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:198) at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:197) at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168) at org.jbpm.graph.def.Node.enter(Node.java:318) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$395302c8.enter(<generated>) at org.jbpm.graph.def.Transition.take(Transition.java:151) at org.jbpm.graph.def.Node.leave(Node.java:393) at org.jbpm.graph.node.StartState.leave(StartState.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$395302c8.leave(<generated>) at org.jbpm.graph.exe.Token.signal(Token.java:192) at org.jbpm.graph.exe.Token.signal(Token.java:140) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270) at com.sample.FirstFlowProcessDBTest.createProcessInstance(FirstFlowProcessDBTest.java:62) at com.sample.FirstFlowProcessDBTest.test4000YuanApplication(FirstFlowProcessDBTest.java:25) at com.sample.FirstFlowProcessDBTest.main(FirstFlowProcessDBTest.java:19) Caused by: java.lang.ClassCastException: com.firstflow.task.NewApplicationAssignmentHandler at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:266) at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:244) ... 25 more 从提示上看就是执行你的任务分配handler时出错了。看不出其他的,你应该在NewApplicationAssignmentHandler类中加一些跟踪代码调试一下 |
|
返回顶楼 | |
发表时间:2009-01-02
能帮我看一下这是什么错吗,谢谢了
Exception in thread "main" 00:00:21,171 [main] DEBUG JbpmContext : closing jbpmContext org.jbpm.JbpmContext@e48e1b 00:00:21,171 [main] DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@17f11fb org.hibernate.HibernateException: Errors in named queries: GraphSession.findTokensForProcessInNode at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:341) |
|
返回顶楼 | |
发表时间:2009-01-02
执行查询时是这个错
org.hibernate.hql.ast.QuerySyntaxException: Invalid path: 'node.name' [ select token from org.jbpm.graph.exe.Token token where token.processInstance.processDefinition.name = :processDefinitionName and node.name = :nodeName ] |
|
返回顶楼 | |
发表时间:2009-01-02
我看了一下在org.jbpm.db中hibernate.queries.hbm.xml中有这样一个查询
<query name="GraphSession.findTokensForProcessInNode"> <![CDATA[ select token from org.jbpm.graph.exe.Token token where token.processInstance.processDefinition.name = :processDefinitionName and node.name = :nodeName ]]> </query> 也不明白这个查询是做什么用的,直接删除了,部署成功,可在执行代码时出现 Exception in thread "main" org.jbpm.JbpmException: task node does not have leaving transition '部门经理审批通过' at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:425) at com.firstflow.FirstFlowProcessDBTest.approveByManager(FirstFlowProcessDBTest.java:138) at com.firstflow.FirstFlowProcessDBTest.test4000YuanApplication(FirstFlowProcessDBTest.java:38) at com.firstflow.FirstFlowProcessDBTest.main(FirstFlowProcessDBTest.java:32) 楼主能看一下是什么问题吗 |
|
返回顶楼 | |
发表时间:2009-01-02
我觉得还是没有部署成功的问题,我在下载的文件中没有发现web.xml,于是新建了一个web.xml在webapp/WEB-INF/web.xml,然后把
<web-app> <servlet> <servlet-name>GDP Deployer Servlet</servlet-name> <servlet-class>org.jbpm.web.ProcessUploadServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>GDP Deployer Servlet</servlet-name> <url-pattern>/upload/*</url-pattern> </servlet-mapping> </web-app> 加入到web.xml中,这样做不知道有没有问题 然后在流程设计器界面的“deployment”标签页中操作: 点击Test Connection会出这样的错 An exception happened while testing the server connection. Resaon: An unexcepted exception caused the test connection operation to fail 不明白是怎么回事,我初学java还望指点一下 |
|
返回顶楼 | |
发表时间:2009-01-02
楼上的兄弟,不要随便删除hibernate.queries.hbm.xml中的sql,有些是目前没有用的,但是为了后期jBPM的扩展,有用的。
看了你的异常,很多是数据库的session被关闭的原因。查查代码吧,有没有在关闭session后又对数据库进行操作的。 至于servlet部署异常,这个比较奇怪,不过尽量不要用“GDP Deployer Servlet”这种带空格的名字,我自己没有试过这个行不行,但最好不要吧。 这个servlet没有必要<load-on-startup>1</load-on-startup> 的。 |
|
返回顶楼 | |
发表时间:2009-01-06
org.jbpm.JbpmException: task node does not have leaving transition '主管同意'
查询这个错误时找到这里,看到很多人都有这个错误,原因大侠们说的也很一致,就是流程定义文件中transition name="主管同意"找不到。 但是问题是我的流程定义文件里有transition name="主管同意"这个东西呀??? 十分迷惑…… 下附流程定义文件的这一部分的定义: <task-node name="部门主管审核"> <task name="主管审核"> <controller> <variable name="baixiaoId" access="read" mapped-name="报销ID"></variable> </controller> <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean"> <targetBean>managerAssignment</targetBean> <factoryKey>jbpmConfiguration</factoryKey> </assignment> </task> <transition name="要求修改" to="申请人修改报销单"></transition> <transition name="主管同意" to="判断走向"></transition> </task-node> 调试时是执行到以下代码报错的: TaskInstance ti=jbpmContext.getTaskMgmtSession().getTaskInstance(Long.parseLong(tid)); if(result.equals("主管同意")||result.equals("主管不同意")) { ti.end("主管同意"); } 这一句ti.end("主管同意");完事就跳到catch块去了。 不知道怎么回事。楼主可以帮忙解答一下吗,不胜感谢! |
|
返回顶楼 | |