Hi,
I’ve been periodically seeing the errors pasted below when I run my processes. I’m not entirely sure what is generating these, or whether I should be concerned about them. Any feedback would be appreciated concerning this. It looks like the side effect may be that I’m not getting a variable recorded in the database?
I’m using Camunda 7.4.0, and 5.5.40 MySQL Community Server.
Thanks,
Galen
30-Mar-2016 11:12:53.502 SEVERE [pool-2-thread-3] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: ENGINE-03004 Exception while executing Database Operation 'INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]' with message '
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
### The error may involve org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.insertVariableInstance-Inline
### The error occurred while setting parameters
### SQL: insert into ACT_RU_VARIABLE ( ID_, TYPE_, NAME_, PROC_INST_ID_, EXECUTION_ID_, CASE_INST_ID_, CASE_EXECUTION_ID_, TASK_ID_, BYTEARRAY_ID_, DOUBLE_, LONG_, TEXT_, TEXT2_, VAR_SCOPE_, SEQUENCE_COUNTER_, IS_CONCURRENT_LOCAL_, REV_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1 )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction'. Flush summary:
[
INSERT HistoricActivityInstanceEventEntity[ServiceTask_5:054e2e97-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[054ef1e8-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9c-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9e-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9f-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea0-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea1-f6a3-11e5-b8f7-10bf481b586c]
INSERT MessageEntity[055f93d2-f6a3-11e5-b8f7-10bf481b586c]
DELETE MessageEntity[053e76fb-f6a3-11e5-b8f7-10bf481b586c]
UPDATE ExecutionEntity[053db3a7-f6a3-11e5-b8f7-10bf481b586c]
]
org.camunda.bpm.engine.ProcessEngineException: ENGINE-03004 Exception while executing Database Operation 'INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]' with message '
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
### The error may involve org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.insertVariableInstance-Inline
### The error occurred while setting parameters
### SQL: insert into ACT_RU_VARIABLE ( ID_, TYPE_, NAME_, PROC_INST_ID_, EXECUTION_ID_, CASE_INST_ID_, CASE_EXECUTION_ID_, TASK_ID_, BYTEARRAY_ID_, DOUBLE_, LONG_, TEXT_, TEXT2_, VAR_SCOPE_, SEQUENCE_COUNTER_, IS_CONCURRENT_LOCAL_, REV_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1 )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction'. Flush summary:
[
INSERT HistoricActivityInstanceEventEntity[ServiceTask_5:054e2e97-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[054ef1e8-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9c-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9e-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9f-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea0-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea1-f6a3-11e5-b8f7-10bf481b586c]
INSERT MessageEntity[055f93d2-f6a3-11e5-b8f7-10bf481b586c]
DELETE MessageEntity[053e76fb-f6a3-11e5-b8f7-10bf481b586c]
UPDATE ExecutionEntity[053db3a7-f6a3-11e5-b8f7-10bf481b586c]
]
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.flushDbOperationException(EnginePersistenceLogger.java:113)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperationManager(DbEntityManager.java:296)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flush(DbEntityManager.java:282)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:315)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:243)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:104)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79)
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
### The error may involve org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.insertVariableInstance-Inline
### The error occurred while setting parameters
### SQL: insert into ACT_RU_VARIABLE ( ID_, TYPE_, NAME_, PROC_INST_ID_, EXECUTION_ID_, CASE_INST_ID_, CASE_EXECUTION_ID_, TASK_ID_, BYTEARRAY_ID_, DOUBLE_, LONG_, TEXT_, TEXT2_, VAR_SCOPE_, SEQUENCE_COUNTER_, IS_CONCURRENT_LOCAL_, REV_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1 )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:154)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeInsertEntity(DbSqlSession.java:145)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.insertEntity(DbSqlSession.java:137)
at org.camunda.bpm.engine.impl.db.AbstractPersistenceSession.executeDbOperation(AbstractPersistenceSession.java:41)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperationManager(DbEntityManager.java:293)
... 10 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:44)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:69)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:48)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:105)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:71)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:152)
... 15 more
30-Mar-2016 11:12:53.513 WARNING [pool-2-thread-3] org.camunda.commons.logging.BaseLogger.logWarn ENGINE-14006 Exception while executing job 053e76fb-f6a3-11e5-b8f7-10bf481b586c: org.camunda.bpm.engine.ProcessEngineException: ENGINE-03004 Exception while executing Database Operation 'INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]' with message '
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
### The error may involve org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.insertVariableInstance-Inline
### The error occurred while setting parameters
### SQL: insert into ACT_RU_VARIABLE ( ID_, TYPE_, NAME_, PROC_INST_ID_, EXECUTION_ID_, CASE_INST_ID_, CASE_EXECUTION_ID_, TASK_ID_, BYTEARRAY_ID_, DOUBLE_, LONG_, TEXT_, TEXT2_, VAR_SCOPE_, SEQUENCE_COUNTER_, IS_CONCURRENT_LOCAL_, REV_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1 )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction'. Flush summary:
[
INSERT HistoricActivityInstanceEventEntity[ServiceTask_5:054e2e97-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[054ef1e8-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9c-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9d-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9e-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1e9f-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea0-f6a3-11e5-b8f7-10bf481b586c]
INSERT VariableInstanceEntity[055f1ea1-f6a3-11e5-b8f7-10bf481b586c]
INSERT MessageEntity[055f93d2-f6a3-11e5-b8f7-10bf481b586c]
DELETE MessageEntity[053e76fb-f6a3-11e5-b8f7-10bf481b586c]
UPDATE ExecutionEntity[053db3a7-f6a3-11e5-b8f7-10bf481b586c]
]