Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21811

Accessing completed task with a form containing a display value field freeze activiti-app UI


    • Bug Priority:
      Category 2
    • Escalated By:
    • ACT Numbers:

      01014056, 01013780, 01013188


      Accessing a completed task with a form containing a display value field freezes the activiti-app UI. This issue affects only APS 1.11 and could not be reproduced in APS 1.9 or 1.10.

      Steps to reproduce

      1. In activiti-app in the App Designer create a new process model: start event-> user task 1->user task 2-> end event
      2. Add a form to the first user task with 2 file upload fields and 2 text fields
      3. Add a form to the second user task and display all values from the first form 
      4. Save the process model, add it to an application and publish the app 
      5. From published app start a new process instance and complete all tasks, whereas you fill in some values in the first user task
      6. Browse to the Task tab of activiti-app UI and from the completed tasks select the completed user task 2 to review its form

      Expected Behavior 
      The details of the completed task are displayed

      Current behavior
      The activiti-app UI freezes with the following error displayed: "The task you are looking for could not be found."

      In catalina.out one can see the following error

      07:10:42 [http-nio-8080-exec-8] ERROR com.activiti.rest.exception.RestExceptionHandlerAdvice - Internal error:
      java.lang.NullPointerException: null
       at com.activiti.service.runtime.FormProcessingServiceImpl.createHistoryForm(FormProcessingServiceImpl.java:976)
       at com.activiti.service.runtime.FormProcessingServiceImpl.getTaskFormDefinition(FormProcessingServiceImpl.java:355)
       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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
       at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
       at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:283)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
       at com.sun.proxy.$Proxy369.getTaskFormDefinition(Unknown Source)
       at com.activiti.service.runtime.AlfrescoTaskFormService.getTaskForm(AlfrescoTaskFormService.java:133)
       at com.activiti.rest.runtime.TaskFormResource.getTaskForm(TaskFormResource.java:43)
       at com.activiti.rest.runtime.TaskFormResource$$FastClassBySpringCGLIB$$50013dc5.invoke(<generated>)

      There are different scenarios that could lead to this situation but all of them have in common, that the second form is having display value fields. I have attached 2 different applications (zip files), both causing this issue.




        1. Completed Task.PNG
          Completed Task.PNG
          55 kB
        2. display.zip
          11 kB
        3. Test.zip
          11 kB




              • Assignee:
                closedissues Closed Issues
                ckilobo Clovis Kilobo
              • Votes:
                0 Vote for this issue
                6 Start watching this issue


                • Created:

                  Structure Helper Panel