08-06-2019 05:58 AM
Hi,
We just upgraded the activiti dependencies from V 5.16.3 to V 5.22 in our application.
We are using a spring base configuration;
.....
<bean id="workflowProcessEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="workflowDataSource" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="history" value="activity" />
<property name="deploymentResources"
value="classpath*:/*/workflow/**/*.bpmn" />
<property name="transactionManager" ref="workflowTransactionManager" />
<property name="jpaEntityManagerFactory" ref="workflowEntityManagerFactory" />
<property name="jpaHandleTransaction" value="true" />
<property name="jpaCloseEntityManager" value="true" />
<property name="createDiagramOnDeploy" value="false" />
</bean>
.....
For some of our processes, we are facing this exception.
..........
org.activiti.engine.ActivitiIllegalArgumentException: Value of primary key for JPA-Entity cannot be null
at org.activiti.engine.impl.variable.JPAEntityMappings.getIdString(JPAEntityMappings.java:174)
..........
The same code works fine with the 5.16.3 dependencies.
Any idea ?
Thanks.
Explore our Alfresco products with the links below. Use labels to filter content by product module.