<?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: NPE when completing a task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188255#M141385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also am having the same problem. &amp;nbsp;The same business process was working fine under PostgreSQL; the problem has appeared after switching to MySQL (version&amp;nbsp;5.7.17). &amp;nbsp;Did you find a solution? &amp;nbsp;I can reproduce in a unit test, but I have to load my entire application, so I can't share the test... It must be something in my application code that is causing the problem, since if I run the same test with only Activiti classes, it works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Mar 2017 21:20:49 GMT</pubDate>
    <dc:creator>david_miller</dc:creator>
    <dc:date>2017-03-18T21:20:49Z</dc:date>
    <item>
      <title>NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188251#M141381</link>
      <description>Recently, we started to have one workflow throw a NullPointerException when trying to complete the first task in the workflow. This is a user task that is being completed, so no other operations on the workflow are happening at the same time. We have other workflows that are functioning correctly.We</description>
      <pubDate>Wed, 07 Oct 2015 19:11:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188251#M141381</guid>
      <dc:creator>robdiana</dc:creator>
      <dc:date>2015-10-07T19:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188252#M141382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you reproduce the issue in jUnit test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 08:03:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188252#M141382</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-10-08T08:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188253#M141383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not able to reproduce with a unit test. I was also told that the environment this is failing in is using MySQL 5.0.77, which is not the version I am using locally. Is there some DEBUG logging I could turn on that would give me a better clue as to what is going on? Or is there some direction on how to dig into this type of issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 14:09:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188253#M141383</guid>
      <dc:creator>robdiana</dc:creator>
      <dc:date>2015-10-08T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188254#M141384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Really strange, because it looks like one of the persistent objects has a null id value. The id value should always have a non null value. If it's possible to know which persistent object is causing the problem that would be great. I don't see a possibility to get more logging from the Activiti code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 08:13:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188254#M141384</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-10-09T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188255#M141385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also am having the same problem. &amp;nbsp;The same business process was working fine under PostgreSQL; the problem has appeared after switching to MySQL (version&amp;nbsp;5.7.17). &amp;nbsp;Did you find a solution? &amp;nbsp;I can reproduce in a unit test, but I have to load my entire application, so I can't share the test... It must be something in my application code that is causing the problem, since if I run the same test with only Activiti classes, it works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 21:20:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188255#M141385</guid>
      <dc:creator>david_miller</dc:creator>
      <dc:date>2017-03-18T21:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188256#M141386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I registered a pre-BPMN parse handler. &amp;nbsp;This parse handler sends all task events (create, assign, complete, delete, save) to a Spring event handler. &amp;nbsp;The Spring event handler looks up certain information about the task. &amp;nbsp;In particular, it uses the&amp;nbsp;TaskService to find identity links for the task. &amp;nbsp;For create, assign, and save events, this doesn't seem to be a problem. &amp;nbsp;For delete and complete events, it causes the NullPointerException in&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;CheckedDeleteOperation.sameIdentity method, as described in the original post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;The fix will be to detect when the event handler is running from a complete or delete event (where we don't care about identity links anyway), and not lookup identity links.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Same code did work with PostgreSQL though. &amp;nbsp;MySQL obviously has some different concurrency model... I am running under InnoDB which supposedly supports multi-version concurrency control (MVCC).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 22:20:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188256#M141386</guid>
      <dc:creator>david_miller</dc:creator>
      <dc:date>2017-03-18T22:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: NPE when completing a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188257#M141387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just verified this works fine. &amp;nbsp;Moral of the story: when running with MySQL, do not lookup identity links during your event handler for task complete and delete events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 22:36:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/npe-when-completing-a-task/m-p/188257#M141387</guid>
      <dc:creator>david_miller</dc:creator>
      <dc:date>2017-03-18T22:36:46Z</dc:date>
    </item>
  </channel>
</rss>

