-
Bug
-
Resolution: Done
-
Critical
-
6.1.0
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: