Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-23988

WorkflowTaskManagerUtil.assignWorkflowTaskToUser method fails in Message Bus

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.0.6 GA
    • Fix Version/s: 6.0.6 GA
    • Labels:
      None
    • Environment:
      Tomcat 6, MySQL 5.1, activiti-web-6.0.6.8.war plugin

      Description

      Using Liferay 6.0.6 and activiti-web-6.0.6.8.war plugin, I used the below method in a JSP page:

      WorkflowTaskManagerUtil.assignWorkflowTaskToUser(
      companyId,
      userId,
      workflowTasks.get.getWorkflowTaskId(),
      assigneeUserId,
      "Some note ...",
      now,
      workflowContext);

      I'm able to assign a task to the specified assigneeUserId with success.

      BUT if I use the SAME method inside a class that implements MessageListener, I get the below error:

      java.lang.NullPointerException
      at com.liferay.portal.workflow.WorkflowPermissionAdvice.invoke(WorkflowPermissionAdvice.java:40)
      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.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
      at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
      at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at $Proxy231.assignWorkflowTaskToUser(Unknown Source)
      at com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil.assignWorkflowTaskToUser(WorkflowTaskManagerUtil.java:50)
      at o2.base.listener.NewUserDittaListener.assignWFtoGestoreDitta(NewUserDittaListener.java:421)
      at o2.base.listener.NewUserDittaListener.doReceive(NewUserDittaListener.java:111)
      at o2.base.listener.NewUserDittaListener.receive(NewUserDittaListener.java:60)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:63)
      at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:61)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 31 weeks ago

                Packages

                Version Package
                6.0.6 GA