<?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: NullPointerException causes jobs to stop executing and ui to become unresponsive in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203111#M156241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, such a pattern should not be needed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What&amp;nbsp; could happen is that the threads of the job executor all are lost due to the exception maybe. Another rejection strategy might be useful in that case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it also happen if you completely close down the browser? Or with another browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, becoming unresponsive as a whole app sounds not good! And I have no real idea how it could be caused.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 14:39:49 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-08-20T14:39:49Z</dc:date>
    <item>
      <title>NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203108#M156238</link>
      <description>I have the 15.1 "activiti-explorer.war" deployed in Tomcat 7 with the properties to enable the demo properties set to false and a MSSQL db configured.I have a process that starts a number (testing with 100) processes using a multiple instance, sequential Java service task.ProcessDefinition processDe</description>
      <pubDate>Thu, 24 Jul 2014 20:29:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203108#M156238</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-07-24T20:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203109#M156239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, Activiti Explorer is a demo-app, used to demonstrate what our API can do. The settings are all default (eg. number of threads used by the job-executor) and the UI is not waterproof.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have this requirement (highly concurrent processes, job-heavy), you need to tweak the job-executor to be able to cope with this kind of load, to get any kind of sensible/viable test results. Sometimes, the UI does multiple calls to the API to create a single screen, in different transactions. So NPE's are not surprising with these kind of processes. Again, it's a demo-UI and in actually production apps, there a more checks for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That this causes the job executor to freeze is really strange. After rebooting still no activity is even stranger. How long do the sleeps take in the fake-service-calls? If it exceeds 5 minutes (or exceeds the database/connection/transaction timeout), the job will be considered as error in execution, and will be retried. After 3 retries (by default) the will NOT be retried.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My advice:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - Tweak job-executor pool settings to reasonable settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Check database-timeout, sleep-times&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Use a decent DB (not H2) to prevent too many table-locks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Double-check the ACT_RU_JOB table for jobs that have 0 retire lefts, when you think the system is "stuck"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 08:11:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203109#M156239</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-25T08:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203110#M156240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your prompt response and apologies for my delayed follow-up. I wanted to post my resolution in case anyone else comes across this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using SQL Server so I doubt table-locks were the problem. Increasing the number of executors helped but didn't eliminate the issue. None of the jobs had 0 retries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the correct pattern to follow here is Service Task -&amp;gt; Receive Task where the service tasks starts another thread which signals the receive tasks? This seems to have alleviated any problems with deadlock and the UI being unresponsive, but raises the additional requirement of needing another framework to manage these threads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed up with a question on the Service -&amp;gt; Receive pattern here: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/correct-way-signal-receivetask" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/correct-way-signal-receivetask&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:53:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203110#M156240</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-19T10:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203111#M156241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, such a pattern should not be needed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What&amp;nbsp; could happen is that the threads of the job executor all are lost due to the exception maybe. Another rejection strategy might be useful in that case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it also happen if you completely close down the browser? Or with another browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, becoming unresponsive as a whole app sounds not good! And I have no real idea how it could be caused.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:39:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203111#M156241</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-08-20T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203112#M156242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The observed behaviour is that the UI displays the waiting spinner which goes to red before loading the page after quite some time. If I also watch the logs I can see 1..numJobExecutors tasks complete before the UI updates. The behaviour is the same when closing the browser or logging in from a different browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll put together a simple example from some older code soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't been able to reproduce the full deadlock scenario in quite some time now. We're running the server on a larger instance now so that might have been a contributing factor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 15:04:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203112#M156242</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-20T15:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203113#M156243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So this seems to happen whenever the number of pending jobs exceeds the number of executors. One workaround I've considered is partitioning the jobs between two engines: one for these long-running jobs and another for everything else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This process is just a series of script tasks with 10s sleeps to simulate long-running service tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;" xmlns:bpmndi="&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;" xmlns:smileysurprised:mgdc="&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;" xmlns:smileysurprised:mgdi="&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;" typeLanguage="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" expressionLanguage="&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;" targetNamespace="&lt;A href="http://www.activiti.org/processdef" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/processdef&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;process id="sleepSeries" name="Sleep Series" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startEvent"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="sleep1" name="Sleep 1" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;Thread.sleep(10000)&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="sleep2" name="Sleep 2" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;Thread.sleep(10000)&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="sleep3" name="Sleep 3" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;Thread.sleep(10000)&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="sleep4" name="Sleep 4" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;Thread.sleep(10000)&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="sid-0BD85755-4505-4802-BE88-0F2BE37B0074"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-A245CE56-5A98-41F4-9CBF-E5CDD9C4CA70" sourceRef="startEvent" targetRef="sleep1"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-8D30CB86-6C2A-4E40-BC11-CDFF536A8AC4" sourceRef="sleep1" targetRef="sleep2"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-35BD5D2C-1FE2-4B49-AA2E-DFD3A82F71D7" sourceRef="sleep2" targetRef="sleep3"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-276DE07B-B7F4-46E4-BFFB-2A02DC2D069F" sourceRef="sleep3" targetRef="sleep4"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-2ABFDEB2-CB75-4846-A00A-49586EA0CE2F" sourceRef="sleep4" targetRef="sid-0BD85755-4505-4802-BE88-0F2BE37B0074"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This process can launch a large number of instances of the process above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;" xmlns:bpmndi="&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;" xmlns:smileysurprised:mgdc="&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;" xmlns:smileysurprised:mgdi="&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;" typeLanguage="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" expressionLanguage="&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;" targetNamespace="&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;process id="exampleProcessLauncher" name="Example Process Launcher" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startEvent" name="Start" activiti:initiator="initiator"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&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; &amp;lt;activiti:formProperty id="cardinality" name="Cardinality" type="long" required="true"&amp;gt;&amp;lt;/activiti:formProperty&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" sourceRef="startEvent" targetRef="parseInputs"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="parseInputs" name="Parse Policy IDs" activiti:async="true" activiti:exclusive="false" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;BR /&gt;&amp;lt;![CDATA[&lt;BR /&gt;// this step normally parses user inputs&lt;BR /&gt;]]&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" sourceRef="parseInputs" targetRef="launchProcesses"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="launchProcesses" name="Service Task" activiti:async="true" activiti:exclusive="false" activiti:class="examples.ExampleProcessLauncher"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false"&amp;gt;&lt;BR /&gt;&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; &amp;lt;loopCardinality&amp;gt;${cardinality}&amp;lt;/loopCardinality&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="launchProcesses" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the service task called by the process above:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package examples;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.FormService;&lt;BR /&gt;import org.activiti.engine.IdentityService;&lt;BR /&gt;import org.activiti.engine.RepositoryService;&lt;BR /&gt;import org.activiti.engine.delegate.DelegateExecution;&lt;BR /&gt;import org.activiti.engine.delegate.JavaDelegate;&lt;BR /&gt;import org.activiti.engine.repository.ProcessDefinition;&lt;BR /&gt;import org.activiti.engine.runtime.ProcessInstance;&lt;BR /&gt;import org.slf4j.Logger;&lt;BR /&gt;import org.slf4j.LoggerFactory;&lt;BR /&gt;&lt;BR /&gt;import java.util.HashMap;&lt;BR /&gt;import java.util.Map;&lt;BR /&gt;&lt;BR /&gt;public class ExampleProcessLauncher implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private static final Logger log = LoggerFactory.getLogger(ExampleProcessLauncher.class);&lt;BR /&gt;&lt;BR /&gt; @Override&lt;BR /&gt; public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; RepositoryService repositoryService = execution.getEngineServices().getRepositoryService();&lt;BR /&gt;&amp;nbsp; FormService formService = execution.getEngineServices().getFormService();&lt;BR /&gt;&amp;nbsp; IdentityService identityService = execution.getEngineServices().getIdentityService();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; String initiator = (String) execution.getVariable("initiator");&lt;BR /&gt;&amp;nbsp; identityService.setAuthenticatedUserId(initiator);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; ProcessDefinition processDefinition = repositoryService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessDefinitionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionKey("sleepSeries")&lt;BR /&gt;&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; .latestVersion()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Map&amp;lt;String, String&amp;gt; formProperties = new HashMap&amp;lt;&amp;gt;();&lt;BR /&gt;&amp;nbsp; ProcessInstance processInstance = formService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .submitStartFormData(processDefinition.getId(), formProperties);&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 09:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203113#M156243</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-08-21T09:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203114#M156244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a similar problem with Activiti Explorer. I deploy and run a simple process which parses messages which are ariving to input queue (RabbitMQ messaging). While the process is waiting for the message to arrive, GUI becomes unresponsive with a red waiting spinner. I am new to activiti and probably doing something wrong, any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a Service Task Delegate class for receiveing messages:&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;package hr.biss.activiti.rabbitmq;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import hr.biss.rabbitmq.Queue;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import hr.biss.rabbitmq.XdrQueueInput;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.delegate.DelegateExecution;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.activiti.engine.delegate.JavaDelegate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.apache.log4j.Logger;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class FetchDataDelegate implements JavaDelegate {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; XdrQueueInput inputQueue = new XdrQueueInput(new Queue("testActivitiInputQueue", "amqp://localhost"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void execute(DelegateExecution execution) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; try {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; String message = new String(inputQueue.receive();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if(message.isEmpty()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("messageCorrupted", true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; } else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("message", message);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("messageCorrupted", false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; } &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; } catch (Exception e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; log.error("");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivan &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 09:59:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203114#M156244</guid>
      <dc:creator>ivan_postic</dc:creator>
      <dc:date>2014-08-22T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203115#M156245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im assuming the inputQueue.receive() is blocking - ie it waits until a message is sent. Is that correct? if so, it explains why the ui locks up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A solution could be to make that service task async. Or did you already do that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Aug 2014 17:00:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203115#M156245</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-08-30T17:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203116#M156246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A simple unit test does not reproduce the issue, but the Activiti Explorer certainly becomes unresponsive while even a modest (10) instances of the process I pasted above are running. All of the tasks are marked async.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is the DbIdGenerator that seems to cause the deadlock condition. I have attached a thread dump captured while the application was locked up while attempting to display the login page. 'pool-2-thread-8' on line 19 is the thread handling the login.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 19:59:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203116#M156246</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-09-02T19:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203117#M156247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is likely a synchronisation issue between one or more of the commands used by Explorer and the process engine. I have disabled Explorer's embedded engine and deployed a separate standalone engine. Since making the change I have not observed any of the problems previously reported. If I find some free time I might look into to the cause to avoid having to deploy two apps, but this solution is perfectly fine for our immediate needs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 23:17:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203117#M156247</guid>
      <dc:creator>exp2345</dc:creator>
      <dc:date>2014-09-03T23:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException causes jobs to stop executing and ui to become unresponsive</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203118#M156248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm thanks for posting back - but it does worry me that it didnt work embedded. If you find the time, would indeed be good to look into it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 09:55:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-causes-jobs-to-stop-executing-and-ui-to/m-p/203118#M156248</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-09-15T09:55:39Z</dc:date>
    </item>
  </channel>
</rss>

