Not able to load data after upgrade to 5.22 (from 5.16.3)

cancel
Showing results for 
Search instead for 
Did you mean: 
aymenbe
Member II

Not able to load data after upgrade to 5.22 (from 5.16.3)

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.