<?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: Job Retry Strategy not being triggered when doCommit fails in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145331#M101546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmm now i understand better, and why it fails. Thanks for that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; would be good if you can get a unit test for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2013 09:44:04 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-06-19T09:44:04Z</dc:date>
    <item>
      <title>Job Retry Strategy not being triggered when doCommit fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145328#M101543</link>
      <description>Hi,I'm using JtaProcessEngineConfiguration in Activiti Engine 5.12 to execute a process with a java service task with async=true attribute. Service task is executed fine (without exceptions) but due to the application logic issue, when transaction is committed in JtaTransactionInterceptor.doCommit m</description>
      <pubDate>Thu, 13 Jun 2013 12:26:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145328#M101543</guid>
      <dc:creator>melentye</dc:creator>
      <dc:date>2013-06-13T12:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Job Retry Strategy not being triggered when doCommit fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145329#M101544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmm it sure does seems like a bug if I understand you correctly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But testing it is tricky: how can I force an exception in the .doCommit …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And secondly, how could that lead to an infinite loop? I tried to see how that would work in the code, but couldnt quite get it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) yes, most likely&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) That will be tricky to implement, as you notice yourself. But I do wonder if it is also the same for the Spring transaction and regular transaction calls … so if we can prove it with a unit test, we can start looking for a generic solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 14:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145329#M101544</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-17T14:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Job Retry Strategy not being triggered when doCommit fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145330#M101545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it will take me some time to come up with a distilled test case&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in general situation can be reproduced with java service task uses JPA to store an entity to the database but this insert violates the unique constraints. Depending on the exact way how storing operation is realized and on JPA provider, you might get an exception during the execution of java delegate or later during the commit. With latest stable version of hibernate I get an exception on commit here (I don't do any flushes or anything like this in the logic of java delegate).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the infinite loop happens because number of retries is never decreased I guess, so JobExecutor just keeps picking up the job after a certain wait timeout.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 14:01:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145330#M101545</guid>
      <dc:creator>melentye</dc:creator>
      <dc:date>2013-06-18T14:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Job Retry Strategy not being triggered when doCommit fails</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145331#M101546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmm now i understand better, and why it fails. Thanks for that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; would be good if you can get a unit test for this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 09:44:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-retry-strategy-not-being-triggered-when-docommit-fails/m-p/145331#M101546</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-19T09:44:04Z</dc:date>
    </item>
  </channel>
</rss>

