I’m getting so many error to flush statements in my process. Its getting very annoying coz i need to keep retrying the incidents. In some number between 800 process instances, i’m getting like 50 errors… I’ve updated my BPMN with some ASYNC BEFORE or ASYNC AFTER only to save some info and dont lose my entire process. I cant give you any test case coz it happens in any service task. Sometimes in service task A, sometimes in service task B.
I have a lot of timers in my process, and a lot of these errors happens when the timer completes.
Another strange error i get is “org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${myDelegate}.”. Its happening a lot when I retry the incidents in cockpit.
I have my class correct, and the bean name is exactly like the class name but with first letter lowercase. Many process find my delegate, but some gives this error and i have to retry it. How could it find the delegate sometimes and sometimes not??? I’m using only the @component annotation in my delegates.
Iam using spring boot starter 2.0.2.RELEASE and camunda springboot starter 3.0.0.
Also using mysql as database, and deploying my camunda in docker with 3 containers, using the sabe database.
Do you have any ideas of what its happening?? We already have many process definitions, in different java projects, different servers and databases, but in every camunda process we get these types of annoying errors.
July 4th 2018, 16:43:58.024 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))
July 4th 2018, 16:43:58.023 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))
July 4th 2018, 16:43:58.022 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))
July 4th 2018, 16:43:58.021 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))
July 4th 2018, 16:43:58.020 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))
July 4th 2018, 16:43:58.019 ### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException: org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.deleteByteArray (batch index #6) failed. 5 prior sub executor(s) completed successfully, but will be rolled back. Cause: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`camunda`.`ACT_RU_VARIABLE`, CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `ACT_GE_BYTEARRAY` (`ID_`))