08-26-2014 08:42 PM
VariableInstanceEntity[id=99, name=nrOfCompletedInstances, type=integer, longValue=1, textValue=1] was updated by another transaction concurrently
final List<String> failedJobs = new ArrayList<String>();
…
while (!currentProcessorJobQueue.isEmpty()) {
String job = currentProcessorJobQueue.remove(0);
try {
commandExecutor.execute(new ExecuteJobsCmd(job));
}
catch( ActivitiOptimisticLockingException ex)
{
if( ! failedJobs.contains(job)){
if (!currentProcessorJobQueue.isEmpty()) {
currentProcessorJobQueue.add(0, job);
} else {
currentProcessorJobQueue.add(job);
}
log.info("ActivitiOptimisticLockingException job:" +job+ ", retry");
failedJobs.add(job);
}
}
catch (Throwable e) {
…
08-30-2014 01:56 PM
08-30-2014 07:47 PM
09-15-2014 05:39 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.