<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PropertyEntity[next.dbid] was updated by another transaction in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82863#M55596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use another db id generator class that does not rely on the db but uses uuids. Search the forum and jira for this (have no link at hand)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a retry when retrieving a block of id's and getting an OLE would indeed be an enhancement I think. Please fie a jira issue for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Apr 2012 06:48:31 GMT</pubDate>
    <dc:creator>ronald_van_kuij</dc:creator>
    <dc:date>2012-04-06T06:48:31Z</dc:date>
    <item>
      <title>PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82856#M55589</link>
      <description>Hi everyone, We have an application that, it has 8 instance.. of course they includes theirself proccessengine.When we run runtimeService.startProcessInstanceByKey("ReceiveTaskTimerTest")we get this error.SEVERE: Error while closing command contextorg.activiti.engine.ActivitiOptimisticLockingExcepti</description>
      <pubDate>Mon, 26 Mar 2012 08:34:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82856#M55589</guid>
      <dc:creator>erensimsek</dc:creator>
      <dc:date>2012-03-26T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82857#M55590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When call &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.startProcessInstanceByKey("ReceiveTaskTimerTest")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti execute this query: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from ACT_GE_PROPERTY where NAME_ = 'next.dbid' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if query result that: 'next.dbid',1,1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and after execute this query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;update ACT_GE_PROPERTY SET REV_ = 2, VALUE_ = (1+idBlockSize) where NAME_ = 'next.dbid' and REV_ = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, when we executing the last query concurrently, we will get optimisticlockException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a result we want to update the first query for oracle like that: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from ACT_GE_PROPERTY where NAME_ = 'next.dbid'&amp;nbsp; for update&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is it dangerous for activiti procces engine and their components..?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 08:40:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82857#M55590</guid>
      <dc:creator>erensimsek</dc:creator>
      <dc:date>2012-03-26T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82858#M55591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no answer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 08:03:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82858#M55591</guid>
      <dc:creator>erensimsek</dc:creator>
      <dc:date>2012-04-03T08:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82859#M55592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it not possible to do a retry when you receive an optimistic lock exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think the query change you propose will have any negative effects on the Activiti Engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a question out of curiosity, do you have so much users for that application that it needs 8 instances of Activiti? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 09:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82859#M55592</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-03T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82860#M55593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes its possible to do a retry; but i dont want to transaction rollback.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also i increased the proccess engine idBlockSize (act_ge_property) value from 100 to 2000, so the rollback count is increased.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes we need 8 instance of activiti, because we want to start 500.000 proccesses in every hour. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any project like this have high count procces instance? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And if you want to see our proccess design attached it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 11:46:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82860#M55593</guid>
      <dc:creator>erensimsek</dc:creator>
      <dc:date>2012-04-03T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82861#M55594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are some high volume examples I know of, but 500.000 per hour is the highest number I've heard of.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the query change would be a good option. Did you already do some tests with the query change?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 07:39:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82861#M55594</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-04T07:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82862#M55595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, we did test with this query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We didnt get any exception. Our performans test is succesfully completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think all activiti query must review for multi instance..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank your for reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 15:02:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82862#M55595</guid>
      <dc:creator>erensimsek</dc:creator>
      <dc:date>2012-04-05T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82863#M55596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use another db id generator class that does not rely on the db but uses uuids. Search the forum and jira for this (have no link at hand)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And a retry when retrieving a block of id's and getting an OLE would indeed be an enhancement I think. Please fie a jira issue for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 06:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82863#M55596</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-04-06T06:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82864#M55597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solution please,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the similar problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2014-04-03 14:51:46,994 ERROR [com.x.workflow.evaluation.xxxxxxxxxxxxxxxxxTask] - An exception occurs on xxxxxxxxxxxxxxxTask: org.activiti.engine.ActivitiOptimisticLockingException: PropertyEntity[name=next.dbid, value=4345101] was updated by another transaction concurrently&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:562)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:444)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:170)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:117)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbIdGenerator.getNewBlock(DbIdGenerator.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbIdGenerator.getNextId(DbIdGenerator.java:36)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.db.DbSqlSession.insert(DbSqlSession.java:111)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableInstanceEntity.createAndInsert(VariableInstanceEntity.java:61)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableInstance(VariableScopeImpl.java:369)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:289)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:276)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:256)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:252)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:239)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.x.workflow.evaluation.xxxxxxxxxxxxx.execute(xxxxxxxxxxxxxTask.java:105)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.GeneratedMethodAccessor744.invoke(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 22:22:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82864#M55597</guid>
      <dc:creator>danniv21</dc:creator>
      <dc:date>2014-04-03T22:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: PropertyEntity[next.dbid] was updated by another transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82865#M55598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using multiple Activiti Engines?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An alternative is to use the StrongUuidGenerator instead. That would prevent you from getting this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 07:53:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/propertyentity-next-dbid-was-updated-by-another-transaction/m-p/82865#M55598</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-04-07T07:53:41Z</dc:date>
    </item>
  </channel>
</rss>

