AnsweredAssumed Answered

org.activiti.engine.impl.interceptor.CommandContext close

Question asked by manoharalfresco on May 17, 2016
Latest reply on May 18, 2016 by martin.grofcik
When ever i am creating object for ProcessEngineFactoryBean in spring then getting below error

org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
java.lang.NullPointerException

I written only one xml that is

<code><beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans  
         http://www.springframework.org/schema/beans/spring-beans.xsd
         http://www.springframework.org/schema/context
         http://www.springframework.org/schema/context/spring-context-2.5.xsd
         http://www.springframework.org/schema/tx     
        http://www.springframework.org/schema/tx/spring-tx-3.0.
        <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
          <property name="driverClass" value="org.postgresql.Driver" />
          <property name="url" value="jdbc:postgresql://192.168.3.118:5432/plianto_qa4" />
          <property name="username" value="postgres" />
          <property name="password" value="plianto" />
          </bean>
           <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
          <property name="dataSource" ref="dataSource" />
          
        </bean>
      
        <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
        <property name="databaseType" value="postgresql" />
          <property name="dataSource" ref="dataSource" />
          <property name="transactionManager" ref="transactionManager" />
          <property name="databaseSchemaUpdate" value="true" />
           <property name="jobExecutorActivate" value="false" />
           <property name="history" value="full" />
        </bean>
      
         <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean" destroy-method="destroy">
          <property name="processEngineConfiguration" ref="processEngineConfiguration" />
        </bean>
      
      
         <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
       <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
        <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
        <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
        <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
 
 
  </beans> <code>

Outcomes