cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to complete the task

shantiswarup
Champ in-the-making
Champ in-the-making
Hi Friends,
I am creating a task using a standalone application pointing to a bpmn and postgres db.
Now the tasks are getting created in act_ru_task table.
I log in to another application(different than the first) pointing to the same db and a copy of xml that was used to create the tasks.
I m able to claim the task but when i try to complete the task , i get the below error.
Kindly help/suggest.



779118 [http-nio-8080-exec-10] INFO org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource BookUploadApproval.bpmn20.xml
org.activiti.engine.ActivitiException: Error parsing XML
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:236)
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:112)
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:50)
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.resolveProcessDefinition(DeploymentManager.java:115)
   at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedProcessDefinitionById(DeploymentManager.java:65)
   at org.activiti.engine.impl.persistence.entity.TaskEntity.getTaskDefinition(TaskEntity.java:748)
   at org.activiti.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:708)
   at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:181)
   at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:50)
   at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)
   at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
   at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
   at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
   at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:166)
   at com.tcs.nalp.ui.BookUploadWorkflow.claimTaskComplete(BookUploadWorkflow.java:86)
   at com.tcs.nalp.ui.InitiateBookForValidationAction.writeJSON(InitiateBookForValidationAction.java:92)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
4 REPLIES 4

shantiswarup
Champ in-the-making
Champ in-the-making
plus when i view the bytea contents in act_ge_bytearray table only part of bpmn is there. Need urgent help

martin_grofcik
Confirmed Champ
Confirmed Champ

shantiswarup
Champ in-the-making
Champ in-the-making
Hi Martin
Thanks for your timely response.
We have figured out the issue and now our applications are running fine.
The issue was due to improper version mismatch of postgres installed and postgres-jdbc4 jar used in our application.
Once we corrected the jdbc jar in our application the issue has resolved and we are able to resolve the older tasks.

Glad to see you managed to work out a solution.

Greg