cancel
Showing results for 
Search instead for 
Did you mean: 

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

manoharalfresco
Champ in-the-making
Champ in-the-making
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="jdbcSmiley Tongueostgresql://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>
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
Can you reproduce the issue in the jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin