14 Replies Latest reply on Aug 24, 2012 1:13 AM by Maciej Swiderski

    the problem caused by the reassignment and notifications under the usertask node in JBPM5

    sandy yang Newbie

      First of all, define a process as below, refer to below picture

      1.png

      In the picture, I defined above info for the reassignmenthe and notifications under usertask.

       

      Then, I transferred the process to guvnor as per below picture:

      2.png

       

      As you can see, there comes NotCompletedNotify in task 1,NotCompletedNotify [tousers:sandy|togroups:sales|subject:task1 notification|body:asdfasfdasdfasdfasdfasdfasdf]@[3m] and  NotCompletedReassign [users:mary|groups:sales]@[2m]

       

      But when the process runs to task1, error popup, as per below picture:

      14:26:54,385 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/JBPMSimpleDemo].[dispatcherServlet]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet dispatcherServlet threw exception: java.lang.ClassCastException: org.jbpm.task.utils.MarshalledContentWrapper cannot be cast to java.lang.String

                at org.jbpm.process.workitem.wsht.HumanTaskHandlerHelper.setDeadlines(HumanTaskHandlerHelper.java:37) [classes:]

                at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler.executeWorkItem(SyncWSHumanTaskHandler.java:276) [jbpm-human-task-core-5.3.0.Final.jar:]

                at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55) [drools-persistence-jpa-5.4.0.Final.jar:]

                at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) [jbpm-flow-5.3.0.Final.jar:]

                at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) [jbpm-flow-5.3.0.Final.jar:]

                at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) [drools-core-5.4.0.Final.jar:]

                at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) [drools-core-5.4.0.Final.jar:]

                at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120) [drools-core-5.4.0.Final.jar:]

                at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39) [drools-core-5.4.0.Final.jar:]

                at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-5.4.0.Final.jar:]

                at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) [drools-persistence-jpa-5.4.0.Final.jar:]

                at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223) [drools-core-5.4.0.Final.jar:]

                at com.erry.jbpm5.Service.JBPMService.startProcess(JBPMService.java:98) [classes:]

                at com.erry.jbpm5.Service.JBPMService$$FastClassByCGLIB$$b406d4ec.invoke(<generated>) [cglib-2.2.jar:]

                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) [cglib-2.2.jar:]

                at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688) [spring-aop-3.0.6.RELEASE.jar:]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.0.6.RELEASE.jar:]

                at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) [spring-tx-3.0.6.RELEASE.jar:]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.0.6.RELEASE.jar:]

                at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621) [spring-aop-3.0.6.RELEASE.jar:]

                at com.erry.jbpm5.Service.JBPMService$$EnhancerByCGLIB$$f1230617.startProcess(<generated>) [cglib-2.2.jar:]

                at com.erry.jbpm5.Interceptor.BpmStartInterceptor.processExecut(BpmStartInterceptor.java:38) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_11]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_11]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_11]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_11]

       

      in source code:

      3.png

      Please help to check reason for this error!!!!!