8 Replies Latest reply on Aug 20, 2014 3:21 AM by buenavida

    Problems with assigning usertask to swimlane

    buenavida

      Hello.

       

      In my process two tasks are assigned to a swimlane. The actor of "User Task 1" is assigned to "max". "User Task 2" has not assigned an actor.

       

      swimlaneproblem.PNG

       

      If I want to get the task "User Task 2" for the user "max" nothing is returned.

       

      So I do

      swimlaneproblem2.PNG

      Shouldn't getTasksAssignedAsPotentialOwner returns the task "User Task 2" after "User Task 1" has been completed?

       

      In the documentation of JBPM6 (6.3.3 User task) is mentioned that the UserTask has a property swimlane. But in the eclipse bpmn2 designer there isn't such a property!?!?

       

      Thanks for your help.

       

      Andi

        • 1. Re: Problems with assigning usertask to swimlane
          swiderski.maciej

          user will be auto assigned to a task based on swimlane if he is eligible to be assigned. This means that you should have tasks assigned to groups by default (usually same group for all task on given lane) and then the user that claimed first task will be auto assign to other tasks. But user must be member of a group task is assigned to.

           

          HTH

          • 2. Re: Problems with assigning usertask to swimlane
            buenavida

            Thanks for your answer for my problem. That works fine for my desktop test application.

             

            But now I have a problem with swimlanes if I use jbpm 6.1CR2 for my tomcat web application with kie-spring. I use the same process defintion as I mentioned above.

            Starting the process and completing the first tasks works fine. But there occurs an exception if I want to complete the second tasks with the taskservice.

             

            The exception is  Could not commit session java.lang.NullPointerException: null

            at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted

            • 3. Re: Problems with assigning usertask to swimlane
              swiderski.maciej

              could you please provide your process definition (bpmn2) and complete stack trace?

              • 4. Re: Problems with assigning usertask to swimlane
                buenavida

                This are the process definition and the stack trace. Sorry for pasting the text here but I found nothing for uploading text files.

                 

                <?xml version="1.0" encoding="UTF-8"?>

                <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">

                  <bpmn2:itemDefinition id="ItemDefinition_1" structureRef="String"/>

                  <bpmn2:itemDefinition id="ItemDefinition_2" structureRef="Integer"/>

                  <bpmn2:itemDefinition id="ItemDefinition_3" structureRef="Boolean"/>

                  <bpmn2:process id="agu.samples.sample3" tns:version="1" tns:packageName="agu.samples" tns:adHoc="false" name="sample3" isExecutable="true" processType="Private">

                    <bpmn2:property id="userid" itemSubjectRef="ItemDefinition_1"/>

                    <bpmn2:property id="groupid" itemSubjectRef="ItemDefinition_1"/>

                    <bpmn2:property id="path" itemSubjectRef="ItemDefinition_1"/>

                    <bpmn2:laneSet id="LaneSet_1" name="Lane Set 1">

                      <bpmn2:lane id="Lane_1" name="Lane 1">

                        <bpmn2:flowNodeRef>UserTask_1</bpmn2:flowNodeRef>

                        <bpmn2:flowNodeRef>UserTask_2</bpmn2:flowNodeRef>

                      </bpmn2:lane>

                    </bpmn2:laneSet>

                    <bpmn2:userTask id="UserTask_1" name="User Task 1">

                      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>

                      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>

                      <bpmn2:ioSpecification id="_InputOutputSpecification_59">

                        <bpmn2:dataInput id="_DataInput_358" itemSubjectRef="ItemDefinition_1" name="TaskName"/>

                        <bpmn2:dataInput id="_DataInput_359" itemSubjectRef="ItemDefinition_2" name="Priority"/>

                        <bpmn2:dataInput id="_DataInput_360" itemSubjectRef="ItemDefinition_1" name="Comment"/>

                        <bpmn2:dataInput id="_DataInput_361" itemSubjectRef="ItemDefinition_1" name="GroupId"/>

                        <bpmn2:dataInput id="_DataInput_362" itemSubjectRef="ItemDefinition_3" name="Skippable"/>

                        <bpmn2:dataInput id="_DataInput_363" itemSubjectRef="ItemDefinition_1" name="Content"/>

                        <bpmn2:dataInput id="_DataInput_364" itemSubjectRef="ItemDefinition_1" name="Locale"/>

                        <bpmn2:inputSet id="_InputSet_79"/>

                        <bpmn2:inputSet id="_InputSet_80" name="New Input Set">

                          <bpmn2:dataInputRefs>_DataInput_358</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_359</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_360</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_361</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_362</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_363</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_364</bpmn2:dataInputRefs>

                        </bpmn2:inputSet>

                        <bpmn2:outputSet id="_OutputSet_81"/>

                        <bpmn2:outputSet id="_OutputSet_82" name="Output Set"/>

                      </bpmn2:ioSpecification>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_358">

                        <bpmn2:targetRef>_DataInput_358</bpmn2:targetRef>

                        <bpmn2:assignment id="Assignment_1">

                          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_2">User Task 1</bpmn2:from>

                          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_1">_DataInput_358</bpmn2:to>

                        </bpmn2:assignment>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_359">

                        <bpmn2:targetRef>_DataInput_359</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_360">

                        <bpmn2:targetRef>_DataInput_360</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_361">

                        <bpmn2:targetRef>_DataInput_361</bpmn2:targetRef>

                        <bpmn2:assignment id="Assignment_17">

                          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_34">Standard</bpmn2:from>

                          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_33">_DataInput_361</bpmn2:to>

                        </bpmn2:assignment>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_362">

                        <bpmn2:targetRef>_DataInput_362</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_363">

                        <bpmn2:targetRef>_DataInput_363</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_364">

                        <bpmn2:targetRef>_DataInput_364</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:potentialOwner id="PotentialOwner_1">

                        <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_1">

                          <bpmn2:formalExpression id="FormalExpression_41">#{userid}</bpmn2:formalExpression>

                        </bpmn2:resourceAssignmentExpression>

                      </bpmn2:potentialOwner>

                    </bpmn2:userTask>

                    <bpmn2:startEvent id="StartEvent_1" name="StartProcess">

                      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>

                    </bpmn2:startEvent>

                    <bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" sourceRef="StartEvent_1" targetRef="UserTask_1"/>

                    <bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" sourceRef="UserTask_1" targetRef="UserTask_2"/>

                    <bpmn2:endEvent id="EndEvent_1" name="">

                      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>

                    </bpmn2:endEvent>

                    <bpmn2:userTask id="UserTask_2" name="User Task 2">

                      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>

                      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>

                      <bpmn2:ioSpecification id="_InputOutputSpecification_60">

                        <bpmn2:dataInput id="_DataInput_365" itemSubjectRef="ItemDefinition_1" name="TaskName"/>

                        <bpmn2:dataInput id="_DataInput_366" itemSubjectRef="ItemDefinition_2" name="Priority"/>

                        <bpmn2:dataInput id="_DataInput_367" itemSubjectRef="ItemDefinition_1" name="Comment"/>

                        <bpmn2:dataInput id="_DataInput_368" itemSubjectRef="ItemDefinition_1" name="GroupId"/>

                        <bpmn2:dataInput id="_DataInput_369" itemSubjectRef="ItemDefinition_3" name="Skippable"/>

                        <bpmn2:dataInput id="_DataInput_370" itemSubjectRef="ItemDefinition_1" name="Content"/>

                        <bpmn2:dataInput id="_DataInput_371" itemSubjectRef="ItemDefinition_1" name="Locale"/>

                        <bpmn2:inputSet id="_InputSet_81"/>

                        <bpmn2:inputSet id="_InputSet_82" name="New Input Set">

                          <bpmn2:dataInputRefs>_DataInput_365</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_366</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_367</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_368</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_369</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_370</bpmn2:dataInputRefs>

                          <bpmn2:dataInputRefs>_DataInput_371</bpmn2:dataInputRefs>

                        </bpmn2:inputSet>

                        <bpmn2:outputSet id="_OutputSet_83"/>

                        <bpmn2:outputSet id="_OutputSet_84" name="Output Set"/>

                      </bpmn2:ioSpecification>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_365">

                        <bpmn2:targetRef>_DataInput_365</bpmn2:targetRef>

                        <bpmn2:assignment id="Assignment_8">

                          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_16">User Task 2</bpmn2:from>

                          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_15">_DataInput_365</bpmn2:to>

                        </bpmn2:assignment>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_366">

                        <bpmn2:targetRef>_DataInput_366</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_367">

                        <bpmn2:targetRef>_DataInput_367</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_368">

                        <bpmn2:targetRef>_DataInput_368</bpmn2:targetRef>

                        <bpmn2:assignment id="Assignment_11">

                          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_22">Standard</bpmn2:from>

                          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_21">_DataInput_368</bpmn2:to>

                        </bpmn2:assignment>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_369">

                        <bpmn2:targetRef>_DataInput_369</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_370">

                        <bpmn2:targetRef>_DataInput_370</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                      <bpmn2:dataInputAssociation id="_DataInputAssociation_371">

                        <bpmn2:targetRef>_DataInput_371</bpmn2:targetRef>

                      </bpmn2:dataInputAssociation>

                    </bpmn2:userTask>

                    <bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" sourceRef="UserTask_2" targetRef="EndEvent_1"/>

                  </bpmn2:process>

                  <bpmndi:BPMNDiagram id="BPMNDiagram_1">

                    <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="agu.samples.sample3">

                      <bpmndi:BPMNShape id="BPMNShape_Lane_1" bpmnElement="Lane_1" isHorizontal="true">

                        <dc:Bounds height="100.0" width="401.0" x="160.0" y="100.0"/>

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">

                        <dc:Bounds height="36.0" width="36.0" x="67.0" y="132.0"/>

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1">

                        <dc:Bounds height="50.0" width="110.0" x="200.0" y="126.0"/>

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">

                        <dc:Bounds height="36.0" width="36.0" x="602.0" y="132.0"/>

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNShape id="BPMNShape_UserTask_2" bpmnElement="UserTask_2">

                        <dc:Bounds height="50.0" width="110.0" x="390.0" y="126.0"/>

                      </bpmndi:BPMNShape>

                      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_UserTask_1">

                        <di:waypoint xsi:type="dc:Point" x="103.0" y="150.0"/>

                        <di:waypoint xsi:type="dc:Point" x="146.0" y="150.0"/>

                        <di:waypoint xsi:type="dc:Point" x="146.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="200.0" y="151.0"/>

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_UserTask_2">

                        <di:waypoint xsi:type="dc:Point" x="310.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="346.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="346.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="390.0" y="151.0"/>

                      </bpmndi:BPMNEdge>

                      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_UserTask_2" targetElement="BPMNShape_EndEvent_1">

                        <di:waypoint xsi:type="dc:Point" x="500.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="545.0" y="151.0"/>

                        <di:waypoint xsi:type="dc:Point" x="545.0" y="150.0"/>

                        <di:waypoint xsi:type="dc:Point" x="602.0" y="150.0"/>

                      </bpmndi:BPMNEdge>

                    </bpmndi:BPMNPlane>

                  </bpmndi:BPMNDiagram>

                </bpmn2:definitions>

                 

                and the stacktrace

                 

                andService|080-exec-4|09:31:38|WARN |  Could not commit session java.lang.NullPointerException: null

                  at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:367)

                  at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:346)

                  at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:404)

                  at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:132)

                  at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:74)

                  at org.drools.core.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:35)

                  at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

                  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                  at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:509)

                  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                  at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73)

                  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                  at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:60)

                  at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:353)

                  at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:145)

                  at org.jbpm.services.task.wih.ExternalTaskEventListener.processTaskState(ExternalTaskEventListener.java:75)

                  at org.jbpm.services.task.wih.ExternalTaskEventListener.afterTaskCompletedEvent(ExternalTaskEventListener.java:119)

                  at org.jbpm.services.task.events.TaskEventSupport.fireAfterTaskCompleted(TaskEventSupport.java:198)

                  at org.jbpm.services.task.internals.lifecycle.MVELLifeCycleManager.taskOperation(MVELLifeCycleManager.java:355)

                  at org.jbpm.services.task.identity.UserGroupLifeCycleManagerDecorator.taskOperation(UserGroupLifeCycleManagerDecorator.java:48)

                  at org.jbpm.services.task.impl.TaskInstanceServiceImpl.complete(TaskInstanceServiceImpl.java:139)

                  at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:70)

                  at org.jbpm.services.task.commands.CompleteTaskCommand.execute(CompleteTaskCommand.java:37)

                  at org.jbpm.services.task.commands.CompositeCommand.execute(CompositeCommand.java:38)

                  at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)

                  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                  at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:54)

                  at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)

                  at org.jbpm.services.task.impl.command.CommandBasedTaskService.complete(CommandBasedTaskService.java:144)

                  at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.complete(SynchronizedTaskService.java:129)

                  at at.agu.wf.services.impl.Jbpm6Engine.completeTask(Jbpm6Engine.java:249)

                  at at.agu.wf.services.impl.JbpmWorkflow.executeAction(JbpmWorkflow.java:275)

                  at at.agu.wf.services.impl.WorkflowCommunicationLayer.executeAction(WorkflowCommunicationLayer.java:368)

                  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:597)

                  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

                  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

                  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

                  at com.sun.proxy.$Proxy222.executeAction(Unknown Source)

                  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:597)

                  at at.agu.ca.util.logger.entrypoint.ServiceEntryPointLogger.invoke(ServiceEntryPointLogger.java:122)

                  at com.sun.proxy.$Proxy234.executeAction(Unknown Source)

                  at at.agu.ta.core.services.impl.TACoreServiceImpl.executeTask(TACoreServiceImpl.java:1806)

                  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:597)

                  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)

                  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

                  at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

                  at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

                  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

                  at com.sun.proxy.$Proxy273.executeTask(Unknown Source)

                  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:597)

                  at at.agu.ca.util.logger.entrypoint.ServiceEntryPointLogger.invoke(ServiceEntryPointLogger.java:122)

                  at com.sun.proxy.$Proxy290.executeTask(Unknown Source)

                  at at.agu.ta.servlets.gwt.rpc.GwtRpcWfServlet.executeTask(GwtRpcWfServlet.java:48)

                  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:597)

                  at at.agu.ta.servlets.gwt.rpc.RpcRemoteServiceServlet.invoke(RpcRemoteServiceServlet.java:269)

                  at com.sun.proxy.$Proxy430.executeTask(Unknown Source)

                  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:597)

                  at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)

                  at at.agu.ta.servlets.gwt.rpc.RpcRemoteServiceServlet.processCall(RpcRemoteServiceServlet.java:382)

                  at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)

                  at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

                  at at.agu.ta.servlets.gwt.rpc.RpcRemoteServiceServlet.service(RpcRemoteServiceServlet.java:412)

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

                  at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

                  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

                  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

                  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

                  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)

                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

                  at java.lang.Thread.run(Thread.java:662)

                • 5. Re: Problems with assigning usertask to swimlane
                  swiderski.maciej

                  Andreas,

                   

                  could you please ensure that you have exact same configuration for tomcat as described here. Especially important is to have system properties set that inform the engine where to find transaction synchronization on tomcat as it's not in standard location in JNDI. Next make sure that your context.xml has transaction related stuff configured same as here.

                   

                  HTH

                  • 6. Re: Problems with assigning usertask to swimlane
                    buenavida

                    Hello Maciej,

                    i don't use the bitronix transaction manager but I use the spring transaction manager org.springframework.orm.jpa.TransactionManager (please see the screenshot attached).

                    tm-config.PNG

                    The persistence.xml looks like this.

                    persistence.PNG

                    persistence2.PNG

                    I don't use JTA but RESOURCE_LOCAL.

                    Everything else works fine but if I use swimlanes there occurs this exception. Do you see a mistake in this configuration?

                     

                    Thank you.

                    Andreas

                    • 7. Re: Problems with assigning usertask to swimlane
                      buenavida

                      Hello, I changed now to jbpm version 6.0.1.final and it works. My experience shows that this doesn't work for jbpm versions higher than 6.0.1.final. Could this be a bug?

                      • 8. Re: Problems with assigning usertask to swimlane
                        buenavida

                        Hi swiderski.maciej!

                        Is this a bug (see above) for versions higher than 6.0.1. Could you reproduce this issue?