<?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: Problem with autodeploy feature and 5.9 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101557#M70525</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;BR /&gt;&lt;SPAN&gt;We changed this logic in version 5.9, so that's probably the cause of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea is that a process will not be redeployed without it being changed, this logic was not implemented correctly before 5.9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you raise a JIRA with a test case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2012 14:34:27 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2012-03-12T14:34:27Z</dc:date>
    <item>
      <title>Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101556#M70524</link>
      <description>I did not noticed this error in 5.8, but in 5.9:When I launched my development environment against a production database backup in 5.8 (and my environment in 5.9), the database was upgraded to 5.9 because I have activated the databaseSchemaUpdate property, BUT it crashes with a NULL Pointer Exceptio</description>
      <pubDate>Mon, 12 Mar 2012 12:58:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101556#M70524</guid>
      <dc:creator>aparraga</dc:creator>
      <dc:date>2012-03-12T12:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101557#M70525</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;BR /&gt;&lt;SPAN&gt;We changed this logic in version 5.9, so that's probably the cause of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea is that a process will not be redeployed without it being changed, this logic was not implemented correctly before 5.9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you raise a JIRA with a test case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 14:34:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101557#M70525</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-03-12T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101558#M70526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have added to the jira here &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1150" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not a minor issue. Adding a new bpmn to the auto deploy will cause any future deployments/starts to fail. The missing logic in the deploymentsDiffer function is clear, the fix is very small but without it autodeployment is unusable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:23:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101558#M70526</guid>
      <dc:creator>jrussell_smyth</dc:creator>
      <dc:date>2012-04-19T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101559#M70527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I already fixed the issue by changing the DeployCmd::deploymentsDiffer method as following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; protected boolean deploymentsDiffer(DeploymentEntity deployment,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DeploymentEntity saved) {&lt;BR /&gt;&amp;nbsp; Map&amp;lt;String, ResourceEntity&amp;gt; resources = deployment.getResources();&lt;BR /&gt;&amp;nbsp; Map&amp;lt;String, ResourceEntity&amp;gt; savedResources = saved.getResources();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for (String resourceName : resources.keySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; String diagramName = resourceName.replaceAll(".+\\/", "");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; boolean isNewDiagram = true; //by default&lt;BR /&gt;&amp;nbsp;&amp;nbsp; for (String pathToDiagram : savedResources.keySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (pathToDiagram.indexOf(diagramName) &amp;gt;= 0) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isNewDiagram = false;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResourceEntity savedResource = savedResources&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; .get(pathToDiagram);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!savedResource.isGenerated()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResourceEntity resource = resources.get(resourceName);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte[] bytes = resource.getBytes();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; byte[] savedBytes = savedResource.getBytes();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!Arrays.equals(bytes, savedBytes)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if(isNewDiagram) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; return false;&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, I don't compare the path to the diagrams, just the filenames. I know that this is not the best general purpose solution, but for our concrete use case is enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, in our case the bug was due to the paths to the diagrams.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 19:49:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101559#M70527</guid>
      <dc:creator>aparraga</dc:creator>
      <dc:date>2012-04-19T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101560#M70528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it feasible to get a 5.9.1 for this fix ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2012 08:59:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101560#M70528</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-04-20T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101561#M70529</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;BR /&gt;&lt;SPAN&gt;I committed a fix for this issue to trunk. It was a really stupid bug, I'm sorry for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be part of Activiti 5.10, but you can always build a version yourself with the trunk 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>Mon, 23 Apr 2012 10:16:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101561#M70529</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-23T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101562#M70530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you can't seriously expect us to build from trunk and use the result in production &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be very helpful if you could link here the commit or diff that fixes this bug. I tried extracting it from the svn logs but there have been several commits on BpmnDeployer since the release so i'm not quite sure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 08:26:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101562#M70530</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-05-02T08:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101563#M70531</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;BR /&gt;&lt;SPAN&gt;I only said you can build a distribution from trunk, I'm not expecting anyone to use that in production.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand, we have a good continuous QA environment, so it's not that stupid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the diff:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fisheye.codehaus.org/browse/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/DeployCmd.java?r2=3393&amp;amp;r1=3249" rel="nofollow noopener noreferrer"&gt;https://fisheye.codehaus.org/browse/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/DeployCmd.java?r2=3393&amp;amp;r1=3249&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 09:04:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101563#M70531</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-02T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101564#M70532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok thanks, found the diff. We'll be forking off 5.9 and apply this locally until 5.10 is released.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 13:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101564#M70532</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-05-02T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101565#M70533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm building a new application using Activiti and encountered the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have an existing database you need to keep, this won't help you but as a temporary fix every time I change the resources I've been wiping out my Activiti database tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_JOB;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_VARIABLE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_GE_BYTEARRAY;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_HI_ACTINST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RE_DEPLOYMENT;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_HI_TASKINST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_HI_PROCINST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_VARIABLE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_IDENTITYLINK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_TASK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RU_EXECUTION;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delete from ACT_RE_PROCDEF;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 19:30:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101565#M70533</guid>
      <dc:creator>robin1</dc:creator>
      <dc:date>2012-05-02T19:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with autodeploy feature and 5.9</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101566#M70534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wiping out those tables is not possible for us in production systems. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you're saying that if you have an existing 5.8 database and you upgrade it to 5.9+above fix it will still not be enough to solve this bug ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 07:54:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-autodeploy-feature-and-5-9/m-p/101566#M70534</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-05-03T07:54:14Z</dc:date>
    </item>
  </channel>
</rss>

