<?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: rule executed in abckground does not work in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93086#M63673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem was on the contenthits aspect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;During the onReadContent, not only onUpdateContent behaviour from the contenthits class should be deactivated, but also AuditableAspect update behaviour ! Indeed, the update of a document property also calls auditableaspect update behaviour.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 14:00:42 GMT</pubDate>
    <dc:creator>tpasturel</dc:creator>
    <dc:date>2007-07-18T14:00:42Z</dc:date>
    <item>
      <title>rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93079#M63666</link>
      <description>Hi all!There seems to be a problem with executing rules in background. In my use case I'm copying several documents in a transaction to a space and an inbound rule in that space which is adding custom aspects to all copies. But when the rule is executed, aspects are added to some documents, but not</description>
      <pubDate>Mon, 07 May 2007 14:10:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93079#M63666</guid>
      <dc:creator>gandrez</dc:creator>
      <dc:date>2007-05-07T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93080#M63667</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;This looks like a bug to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you always see this type of error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you raise a JIRA issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 08:17:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93080#M63667</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-05-14T08:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93081#M63668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Andy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have raised an issue as you suggested at&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1456" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1456&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the exception is thrown every time I access a document which has this aspect applied. I've also noticed a pattern. It gets thrown on a 1 minute basis. If I access any number of documents with this aspect applied in a time frame before the next time this (I think) job scheduler checks, a single exception is thrown. If I don't access any document within the next 60 seconds, the exception is not thrown. Of course when I access a document again at any point after that, everything repeats. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dragan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:26:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93081#M63668</guid>
      <dc:creator>gandrez</dc:creator>
      <dc:date>2007-05-14T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93082#M63669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Andy!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A small update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I've been using Alfresco 2.0 CE with Tomcat bundle and HSQL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I deployed the application to a stand-alone Tomcat server and switched to MySQL the exceptions do not appear anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dragan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:18:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93082#M63669</guid>
      <dc:creator>gandrez</dc:creator>
      <dc:date>2007-05-15T08:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93083#M63670</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 have the same problem. A custom aspect is applied to each document. When a document is read or updated the same error is thrown. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no correlation with a backgroung executing rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is linked with custom apect behaviours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the bug appeared, a new message is sometimes written in the output console :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;### Excluding compile:&amp;nbsp; org.apache.lucene.index.IndexReader$1::doBody&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 07:46:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93083#M63670</guid>
      <dc:creator>tpasturel</dc:creator>
      <dc:date>2007-07-04T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93084#M63671</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;The issue is the indexer is reading content while doing background indexing - if this index changes attributes - it will need to reindex. The fix will be to reindex without binding the onReadContent&amp;nbsp; policy. The fix is not in yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, whatever you are trying to do is probably flawed. I would guess you want to count access or audit access. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the first case caching/or not makes the numbers pretty pointless. Also, the windows CIFS client opens files threee times for a read and access to properties will open the content many times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is for audit - then getting the content means nothing with regard to proving someone has read it …or that someone else has not read it - for I have email, a printer, …..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have to ask, what are you trying to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 16:34:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93084#M63671</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-07-06T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93085#M63672</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;&amp;nbsp;&amp;nbsp; there are two aspects applied to each document. One for metadatas and the second is the ContentHitsAspect sample from the sdk. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; For us, the purpose of the contenhits aspect is to have an audit of the content access by users (onReadContent). Not to have the exact number of content readings but to compare the different spaces success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The onUpdateContent behaviour has been deleted because it was called on each reading.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; CIFS is deactivated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The bug disappeared once on a tomcat reboot without source changes (only a larger jvm memory), and the next reboot reappeared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The documents are well indexed, but the big problem with that bug is that the memory is not well deallocated and the jvm heap oversizes in one day of using (1.5 GB alllocated).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 08:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93085#M63672</guid>
      <dc:creator>tpasturel</dc:creator>
      <dc:date>2007-07-09T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93086#M63673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem was on the contenthits aspect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;During the onReadContent, not only onUpdateContent behaviour from the contenthits class should be deactivated, but also AuditableAspect update behaviour ! Indeed, the update of a document property also calls auditableaspect update behaviour.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 14:00:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93086#M63673</guid>
      <dc:creator>tpasturel</dc:creator>
      <dc:date>2007-07-18T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: rule executed in abckground does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93087#M63674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm using custom aspect similar to ContentHits that is updating a document every time the document is viewed. After a certain time Alfresco keeps throwing the following exception…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Auditable Aspect onUpdateNode behaviour deactivation is not sufficient because setProperty implementation constraints the call of the behaviour call :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DBNodeServiceImpl v2.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; public void setProperty(NodeRef nodeRef, QName qname, Serializable value) throws InvalidNodeRefException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.notNull(qname);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Invoke policy behaviours&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;invokeBeforeUpdateNode(nodeRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; […]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Invoke policy behaviours&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;invokeOnUpdateNode(nodeRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; invokeOnUpdateProperties(nodeRef, propertiesBefore, propertiesAfter);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 09:26:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-executed-in-abckground-does-not-work/m-p/93087#M63674</guid>
      <dc:creator>tpasturel</dc:creator>
      <dc:date>2007-10-01T09:26:37Z</dc:date>
    </item>
  </channel>
</rss>

