I am using jBPM 4.3. If you need any more version information please ask.
We get an exception when trying to call ExecutionService#endProcessInstance(...).
FK_VAR_LOB is a foreign key constraint for JBPM4_VARIABLE.LOB_ column that points to JBPM4_LOB.DBID_. This error means that a DELETE for a record in JBPM4_LOB conflicts with a record in JBPM4_VARIABLE that points to that same record.
I think this problem is related with this strange situation.
The LOB_ in question is 2260042 (see next line).
org.zkoss.zk.ui.UiException: rendering.0010: org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.lob.Lob#2260042].
So I did a query on JBPM4_VARIABLE for any records with that LOB_.
select * from jbpm4_variable where lob_ is not null and lob_ = 2260229
And I got two records that:
- use ser-bytes converter;
- have two diferent KEY_ names;
- have two different EXECUTIONID_ values;
- Point to the same LOB_.
Oddly enough the EXECUTIONID_ values are for different processes.
select dbid_, procdefid_ from jbpm4_execution where dbid_ in (2260197, 2260223)
For setting a variable value we use several API, but all from publicly exposed jBPM interfaces:
So, to make my questions clear.
Is this behavior normal for JBPM4_VARIABLE, I would have guessed it is not?
And, what could be causing this strange behavior?
Feel free to ask any more input or data that you consider could help further investigating this issue.