Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-1005

Remote AddTaskCommand produce NPE when tries to get workItemId, processInstanceId and others

XMLWordPrintable

      Description of problem:

      When I try to add an adhoc task remotely via AddTaskCommand, I get NPE:

      Caused by: java.lang.NullPointerException
      at org.jbpm.services.task.impl.model.xml.JaxbTaskData.getWorkItemId(JaxbTaskData.java:222)
      at org.jbpm.services.task.impl.model.xml.JaxbTask.getTask(JaxbTask.java:309)
      at org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:96)
      at org.jbpm.services.task.commands.AddTaskCommand.execute(AddTaskCommand.java:53)
      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.execute(CommandBasedTaskService.java:128)
      at org.jbpm.kie.services.impl.UserTaskServiceImpl.execute(UserTaskServiceImpl.java:876)
      at org.jbpm.services.cdi.impl.UserTaskServiceCDIImpl$Proxy$$$_WeldClientProxy.execute(UserTaskServiceCDIImpl$Proxy$$$_WeldClientProxy.java)
      at org.kie.remote.services.cdi.ProcessRequestBean.doTaskOperation(ProcessRequestBean.java:232)

      The command requires to have workitemId, processInstanceId, ... configured though they are not necessary.

      Version-Release number of selected component (if applicable):

      How reproducible:

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

            swiderski.maciej Maciej Swiderski (Inactive)
            ibek1@redhat.com Ivo Bek
            Ivo Bek Ivo Bek
            Ivo Bek Ivo Bek
            Alessandro Lazarotti, Kris Verlaenen, Maciej Swiderski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: