2 lizhipeng 119 lizhipeng_119 于 2017.01.11 09:29 提问

java Activiti报ActivitiOptimisticLockingException
 org.activiti.engine.ActivitiOptimisticLockingException: HistoricVariableInstanceEntity[id=e7a3dcba-d72b-11e6-873a-1c1b0d35981e, name=userId, revision=1, type=string, textValue=王] was updated by another transaction concurrently
    at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:872)
    at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:611)
    at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:211)
    at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:137)
    at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)
    at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
    at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)

执行审批后,报这个错误

1个回答

u012561176
u012561176   2017.01.11 09:35

ActivitiOptimisticLockingException 这个异常是Activiti操作被锁了异常,后面看到是更新数据时事务锁了!其实我也不太清楚,具体网上找下如何处理吧!我只是说说而已

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!