<?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: Duplicate Row error on redeploy of BPMN file, Activiti 5.10 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142102#M99519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I experimented with this some more.&amp;nbsp; Here's the deal:&amp;nbsp; Using a specific BPMN, I can deploy, start, redeploy - with no errors - using an Activiti Explorer instance backed by PostreSQL.&amp;nbsp;&amp;nbsp; However, using an instance backed by DB/2, using the exact same BPMN file, redeploy results in the "duplicate row" error listed above.&amp;nbsp; So this does appear to be something specific to the DB/2 support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first hunch is that the db scripts may not be creating the unique constraint correctly on DB/2.&amp;nbsp; I'll start examining that, but if anyone else has any ideas or suggestions, I'm all ears.&amp;nbsp; I really need to get this working for a client, and DB/2 is - for better or worse - non-negotiable here.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 16:04:37 GMT</pubDate>
    <dc:creator>mindcrime</dc:creator>
    <dc:date>2013-03-25T16:04:37Z</dc:date>
    <item>
      <title>Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142099#M99516</link>
      <description>Fellow Aciviti'ers:I'm seeing some strange behaviour when redeploying a BPMN file through Activiti Explorer.&amp;nbsp; This only seemsto happen if the BPMN in question has running processes associated with it.&amp;nbsp;&amp;nbsp; In this case, when youupload the new BPMN, the following error is encountered.&amp;nbsp;&amp;nbsp; The DB2 SQLSTATE</description>
      <pubDate>Fri, 22 Mar 2013 15:27:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142099#M99516</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-22T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142100#M99517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it a single process BPMN-fiel you deploy or is it a BAR-file? Do you see the same behavior on the default H2-db (if it's possible to test this in your environment with your processes).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142100#M99517</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-22T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142101#M99518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it a single process BPMN-fiel you deploy or is it a BAR-file? Do you see the same behavior on the default H2-db (if it's possible to test this in your environment with your processes).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a single .bpmn20.xml file.&amp;nbsp;&amp;nbsp; I might be able to setup an H2 based environment to test this, but it'll take a little bit of work, as our current dev environment is all DB2 based.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried a similar experiment with a local install of Activiti Explorer, backed by PostgreSQL, and can confirm that - in at least some circumstances - redeploying a BPMN, even if it has associated running instances - works OK.&amp;nbsp; But the BPMN I was experimenting with in that environment wasn't the same one I was using in dev.&amp;nbsp; So right now, I don't know if it's more likely that the problem is something to do with the difference between PostgreSQL / DB2, or if it involves a difference in the actual process definition itself.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep doing some more experiments here and see if I can narrow things down a bit…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142101#M99518</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-22T15:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142102#M99519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I experimented with this some more.&amp;nbsp; Here's the deal:&amp;nbsp; Using a specific BPMN, I can deploy, start, redeploy - with no errors - using an Activiti Explorer instance backed by PostreSQL.&amp;nbsp;&amp;nbsp; However, using an instance backed by DB/2, using the exact same BPMN file, redeploy results in the "duplicate row" error listed above.&amp;nbsp; So this does appear to be something specific to the DB/2 support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first hunch is that the db scripts may not be creating the unique constraint correctly on DB/2.&amp;nbsp; I'll start examining that, but if anyone else has any ideas or suggestions, I'm all ears.&amp;nbsp; I really need to get this working for a client, and DB/2 is - for better or worse - non-negotiable here.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 16:04:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142102#M99519</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-25T16:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142103#M99520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm sounds really strange. Would you be able to inspect the contents of the db before the exception happens? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you also set the log level to debug, that way you can see what data is going into the database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 09:40:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142103#M99520</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-26T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142104#M99521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hmm sounds really strange. Would you be able to inspect the contents of the db before the exception happens? &lt;BR /&gt;&lt;BR /&gt;Could you also set the log level to debug, that way you can see what data is going into the database.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached a remote debugger and stepped through the deploy process yesterday, although I didn't quite find exactly where the error is occurring.&amp;nbsp; I'm not very familiar with that part of the Activiti code, nor with iBatis, unfortunately.&amp;nbsp; However, my suspicion now is that the problem has something to do with the primary key generation for new persistent objects.&amp;nbsp; I'm going to switch Activiti Explorer over to using UUIDs and test that, as a quick "spike" to see if it solves the problem.&amp;nbsp; If it does, we're actually fine, since we were planning to go with UUIDs anyway.&amp;nbsp; If that doesn't work, I'll try setting the logs to debug, and/or doing some additional exploration with the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One quick side note, which may or may not be relevant… looking at my console log from yesterday, it looks like one attempt to redeploy this BPMN resulted in that same error message / stacktrace being printed four times.&amp;nbsp; Not sure if maybe there's some retry logic in there, or if the error is just being logged multiple times or what.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:27:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142104#M99521</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-26T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142105#M99522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I think I have this figured out.&amp;nbsp; In our DEV db, there is a unique constraint on the 'NAME' column of the ACT_RE_DEPLOYMENT table.&amp;nbsp; This constraint is not present in, for example, my local PostgreSQL instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Strangely enough, the constraint name is 'ACT_UNIQ_RE_DEPLOY_NAME' but I grepped through the Activiti 5.10 source and could not find that symbol anywhere.&amp;nbsp; Does anyone know if maybe that's a throwback to a previous version of Activiti or something?&amp;nbsp; The client claim they didn't make any changes to the Activiti db, so I'm assuming it go put there by the Activiti install script, at some point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:44:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142105#M99522</guid>
      <dc:creator>mindcrime</dc:creator>
      <dc:date>2013-03-26T15:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Row error on redeploy of BPMN file, Activiti 5.10</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142106#M99523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems like that is a remainder from the initial "experimental" DB2-support. This constraint can be safely dropped, as it makes no sense to be on the table. Anyhow, 5.10+ doesn't contain this constraint anymore, maybe that's why not many people run into this issue. Thanks for sharing!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:09:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/duplicate-row-error-on-redeploy-of-bpmn-file-activiti-5-10/m-p/142106#M99523</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-27T12:09:06Z</dc:date>
    </item>
  </channel>
</rss>

