AnsweredAssumed Answered

deploy bpmn file problem

Question asked by asuka on Aug 6, 2014
Latest reply on Aug 7, 2014 by martin.grofcik
Hi, everyone!
      I am tring to integrate Activiti to my own system.When I try to deploy a bpmn file like this:

try
{
    ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
    RepositoryService repositoryService = processEngine.getRepositoryService();
   
    logger.error("pos 1");
    repositoryService.createDeployment().addClasspathResource("activiti/FinancialReportProcess.bpmn20.xml").deploy();
    logger.error("pos 2");
}
catch(Exception e)
{
    e.printStackTrace();
}


"pos 1" is outputed to the console but "pos 2" is not. There must be some expetion in "deploy" method, but "catch" block does not output any log. Here is the activiti debug log:

2014-08-06 17:12:59,291 [localhost-startStop-1] INFO  org.activiti.engine.impl.ProcessEngineImpl - ProcessEngine default created
2014-08-06 17:12:59,299 [localhost-startStop-1] INFO  org.activiti.engine.ProcessEngines - initialised process engine default
2014-08-06 17:12:59,300 [localhost-startStop-1] ERROR "pos1"
2014-08-06 17:12:59,331 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor -                                                                                                    
2014-08-06 17:12:59,331 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - — starting DeployCmd ——————————————————–
2014-08-06 17:12:59,332 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor -                                                                                                    
2014-08-06 17:12:59,332 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - — starting GetNextIdBlockCmd ——————————————————–
2014-08-06 17:12:59,333 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.selectProperty - ooo Using Connection [oracle.jdbc.driver.T4CConnection@5c16b600]
2014-08-06 17:12:59,333 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.selectProperty - ==>  Preparing: select * from ACT_GE_PROPERTY where NAME_ = ?
2014-08-06 17:12:59,333 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.selectProperty - ==> Parameters: next.dbid(String)
2014-08-06 17:12:59,335 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - flush summary: 0 insert, 1 update, 0 delete.
2014-08-06 17:12:59,335 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession -   update PropertyEntity[name=next.dbid, value=22501]
2014-08-06 17:12:59,335 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - now executing flush…
2014-08-06 17:12:59,336 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - updating: PropertyEntity[name=next.dbid, value=22501]
2014-08-06 17:12:59,336 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.updateProperty - ooo Using Connection [oracle.jdbc.driver.T4CConnection@5c16b600]
2014-08-06 17:12:59,336 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.updateProperty - ==>  Preparing: update ACT_GE_PROPERTY SET REV_ = ?, VALUE_ = ? where NAME_ = ? and REV_ = ?
2014-08-06 17:12:59,337 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.PropertyEntity.updateProperty - ==> Parameters: 10(Integer), 22501(String), next.dbid(String), 9(Integer)
2014-08-06 17:12:59,339 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - firing event committing…
2014-08-06 17:12:59,339 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - committing the ibatis sql session…
2014-08-06 17:12:59,350 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - firing event committed…
2014-08-06 17:12:59,350 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - — GetNextIdBlockCmd finished ——————————————————–
2014-08-06 17:12:59,351 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor -                                                                                                    
2014-08-06 17:12:59,351 [localhost-startStop-1] DEBUG org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing deployment null
2014-08-06 17:12:59,351 [localhost-startStop-1] INFO  org.activiti.engine.impl.bpmn.deployer.BpmnDeployer - Processing resource activiti/FinancialReportProcess.bpmn20.xml
2014-08-06 17:12:59,358 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - flush summary: 2 insert, 0 update, 0 delete.
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession -   insert DeploymentEntity[id=20001, name=null]
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession -   insert ResourceEntity[id=20002, name=activiti/FinancialReportProcess.bpmn20.xml]
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - now executing flush…
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - inserting: DeploymentEntity[id=20001, name=null]
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.DeploymentEntity.insertDeployment - ooo Using Connection [oracle.jdbc.driver.T4CConnection@5c16b600]
2014-08-06 17:12:59,359 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.DeploymentEntity.insertDeployment - ==>  Preparing: insert into ACT_RE_DEPLOYMENT(ID_, NAME_, CATEGORY_, TENANT_ID_, DEPLOY_TIME_) values(?, ?, ?, ?, ?)
2014-08-06 17:12:59,360 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.DeploymentEntity.insertDeployment - ==> Parameters: 20001(String), null, null, (String), 2014-08-06 17:12:59.331(Timestamp)
2014-08-06 17:12:59,361 [localhost-startStop-1] DEBUG org.activiti.engine.impl.db.DbSqlSession - inserting: ResourceEntity[id=20002, name=activiti/FinancialReportProcess.bpmn20.xml]
2014-08-06 17:12:59,361 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.ResourceEntity.insertResource - ooo Using Connection [oracle.jdbc.driver.T4CConnection@5c16b600]
2014-08-06 17:12:59,361 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.ResourceEntity.insertResource - ==>  Preparing: insert into ACT_GE_BYTEARRAY(ID_, REV_, NAME_, BYTES_, DEPLOYMENT_ID_, GENERATED_) values (?, 1, ?, ?, ?, ?)
2014-08-06 17:12:59,362 [localhost-startStop-1] DEBUG org.activiti.engine.impl.persistence.entity.ResourceEntity.insertResource - ==> Parameters: 20002(String), activiti/FinancialReportProcess.bpmn20.xml(String), java.io.ByteArrayInputStream@5f9c223e(ByteArrayInputStream), 20001(String), false(Boolean)
2014-08-06 17:12:59,364 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - firing event committing…
2014-08-06 17:12:59,364 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - committing the ibatis sql session…
2014-08-06 17:12:59,368 [localhost-startStop-1] DEBUG org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext - firing event committed…
2014-08-06 17:12:59,371 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor - — DeployCmd finished ——————————————————–
2014-08-06 17:12:59,371 [localhost-startStop-1] DEBUG org.activiti.engine.impl.interceptor.LogInterceptor -                                                                   



Could anyoen give me a help? Thanks in advance!

Outcomes