<?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 in AtomicOperationTransitionDestroyScope in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210587#M163717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is a racing condition between the receive task database commit and the signal method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree a nullpointer is not nice, but it would still be the same issue with a nicer message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you signal that quickly, why not use another construct (a custom service task for example that does the wait and receive at once?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 14:56:00 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-05-18T14:56:00Z</dc:date>
    <item>
      <title>NullPointerException in AtomicOperationTransitionDestroyScope</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210585#M163715</link>
      <description>In activiti 5.16.3 we defined a flow that has a receive task. Later on in the flow it is possible to be redirected to that same receive task.In our integration tests we test the flow by signalling&amp;nbsp; the execution runtimeService.signal(id, processData);‍‍‍Since it is possible in our flow that the same</description>
      <pubDate>Thu, 18 Dec 2014 08:50:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210585#M163715</guid>
      <dc:creator>deg</dc:creator>
      <dc:date>2014-12-18T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in AtomicOperationTransitionDestroyScope</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210586#M163716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Activiti 5.17 we still encounter this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We wait for the process to wait for the event before we send the message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We do this by querying the proces so that it is in the receive task before we send the message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; runtimeService.createExecutionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; .processDefinitionKey(processDefinitionKey)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; .activityId(taskIdentifier)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; .processVariableValueEquals(A_KEY, aUniqueValue);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When this query returns the result we signal the process that the task is received. But this still gives us the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.NullPointerException: null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:96) ~[activiti-engine-5.17.0.jar:5.17.0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96) ~[activiti-engine-5.17.0.jar:5.17.0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631) ~[activiti-engine-5.17.0.jar:5.17.0]&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; If we add the ugly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;Thread.sleep(1000);&amp;lt;/code&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then our tests pass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i really don't want such fragile tests with Thread.sleeps everywhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210586#M163716</guid>
      <dc:creator>deg</dc:creator>
      <dc:date>2015-05-13T09:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: NullPointerException in AtomicOperationTransitionDestroyScope</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210587#M163717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is a racing condition between the receive task database commit and the signal method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree a nullpointer is not nice, but it would still be the same issue with a nicer message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you signal that quickly, why not use another construct (a custom service task for example that does the wait and receive at once?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 14:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/nullpointerexception-in-atomicoperationtransitiondestroyscope/m-p/210587#M163717</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-05-18T14:56:00Z</dc:date>
    </item>
  </channel>
</rss>

