AnsweredAssumed Answered

Got the 'Error reading XML' error when claiming the task before completing the task

Question asked by tinlinnnsoe on May 27, 2015
Latest reply on Oct 29, 2015 by pakmans
I am using Activiti engine version 5.17.0 in my java based project. I took all the jar files from the "activiti-explorer.war" folder and using them as library jars in my project build path.

I got the following error when claiming the task before completing the task.

org.activiti.bpmn.exceptions.XMLException: Error reading XML
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(
        Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]
   at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(

I always noticed this error with following conditions.
(1) Start a new workflow that included 4 approve reject steps
(2) First assignee approve the task
(3) #Restart the application server#
(4) Next assignee approve the second task of previous workflow
At this time, I got the above error.
If the application server is not restarted, it is okay and all of four assignee can approve or reject all of the tasks.

My project environment using following technologies
-> Spring
-> JBoss Seam
-> Spring AOP
-> Ibatis
-> PostgreSQL
-> Application Server is JBoss 7.1

#When Integrating Activiti with Spring MVC and running on Tomcat , It was okay and everything is fine.#
Please help me and give any suggestions.