<?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 executor failed to process all jobs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226329#M179459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Wraper, I will give a try to see whether it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 00:04:33 GMT</pubDate>
    <dc:creator>tonyado</dc:creator>
    <dc:date>2016-08-30T00:04:33Z</dc:date>
    <item>
      <title>job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226323#M179453</link>
      <description>FYI. I am running async service task test, and my unit test code is:&amp;lt;blockcode&amp;gt;public void testParallel() throws Exception {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final String deploymentId = repositoryService.createDeployment().addClasspathResource("ParallelServiceTask.bpmn20.xml")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .deploy().getId();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S</description>
      <pubDate>Mon, 29 Aug 2016 09:09:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226323#M179453</guid>
      <dc:creator>tonyado</dc:creator>
      <dc:date>2016-08-29T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226324#M179454</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;SPAN&gt;It seems you did not enable job executor: jobExecutorActivate=false in your settings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 09:53:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226324#M179454</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-29T09:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226325#M179455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Wraper, I just tried to set &amp;lt;code&amp;gt;jobExecutorActivate=true&amp;lt;/code&amp;gt;, it has no help with this. Still the same problem. And according to the user guide, this value should be false imo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226325#M179455</guid>
      <dc:creator>tonyado</dc:creator>
      <dc:date>2016-08-29T11:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226326#M179456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi TonyAdo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently you might experience issues with parallel gateway due to "exclusive=false" in your tasks definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please take a look at activiti user guide, section 8.7.3. Exclusive Jobs. In particular, it mentions your scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why is this a problem? Since the service tasks are configured using an asynchronous continuation, it is possible that the corresponding jobs are all acquired at the same time and delegated to different worker threads by the JobExecutor. The consequence is that the transactions in which the services are executed and in which the 3 individual executions arrive at the parallel join can overlap. And if they do so, each individual transaction will not "see", that another transaction is arriving at the same parallel join concurrently and thus assume that it has to wait for the others. However, if each transaction assumes that it has to wait for the other ones, none will continue the process after the parallel join and the process instance will remain in that state forever.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, please make sure jobExecutor actually runs and executes jobs. Even if process stalls at parallelgateway you should see two executions at about this stage of process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 12:47:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226326#M179456</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-29T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226327#M179457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Wraper&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your detailed reply. But if I remove &amp;lt;code&amp;gt;exclusive=false&amp;lt;/code&amp;gt;, the service tasks are executed in sequence not in real parallel. From the test output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mon Aug 29 21:21:24 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deployment id: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mon Aug 29 21:21:26 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mon Aug 29 21:21:26 CST 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;start download bundle service task: 26&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;start off traffic service task: 26&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;download bundle get executed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;off traffic get executed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: time limit of 30000 was exceeded&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.test.AbstractActivitiTestCase.waitForJobExecutorToProcessAllJobs(AbstractActivitiTestCase.java:213)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.westudio.activiti.ParallelServiceTaskTest.testParallel(ParallelServiceTaskTest.java:20)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.reflect.Method.invoke(Method.java:606)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestCase.runTest(TestCase.java:176)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.test.PvmTestCase.runTest(PvmTestCase.java:65)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestCase.runBare(TestCase.java:141)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.test.AbstractActivitiTestCase.runBare(AbstractActivitiTestCase.java:86)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestResult$1.protect(TestResult.java:122)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestResult.runProtected(TestResult.java:142)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestResult.run(TestResult.java:125)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestCase.run(TestCase.java:129)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestSuite.runTest(TestSuite.java:255)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at junit.framework.TestSuite.run(TestSuite.java:250)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.junit.runner.JUnitCore.run(JUnitCore.java:160)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:253)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.reflect.Method.invoke(Method.java:606)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Process finished with exit code 255&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we can see service tasks really get executed, the problem is job executor will exceeded the time limit, and the process will never reach to the end state.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:25:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226327#M179457</guid>
      <dc:creator>tonyado</dc:creator>
      <dc:date>2016-08-29T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226328#M179458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi TonyAdo!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, it's expected to be so. Each execution updated its own transaction and doesn't see data from another transaction. To see it they need to be run in one transaction context and it happens only if they already run in exclusive mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To be honest, I've never joined non-exclusive executions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you can add dummy script tasks with asynch=true and exclusive=true flags after your service tasks and they will go to parallel gateway and join properly. It will take a couple more async jobs, but theorethcally it should fix the issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:00:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226328#M179458</guid>
      <dc:creator>warper</dc:creator>
      <dc:date>2016-08-29T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: job executor failed to process all jobs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226329#M179459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Wraper, I will give a try to see whether it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 00:04:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-executor-failed-to-process-all-jobs/m-p/226329#M179459</guid>
      <dc:creator>tonyado</dc:creator>
      <dc:date>2016-08-30T00:04:33Z</dc:date>
    </item>
  </channel>
</rss>

