<?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: Erroneous 'node does not exist' exception. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/erroneous-node-does-not-exist-exception/m-p/120044#M32988</link>
    <description>&lt;P&gt;May be bug with the way IT code is developed, if the folder doesn't exists the error is expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you mind sharing the IT java source code here, provide any dependent code if you are using in the IT java class?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also provide the detailed steps that you are doing with IT.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 19:09:48 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2020-12-07T19:09:48Z</dc:date>
    <item>
      <title>Erroneous 'node does not exist' exception.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/erroneous-node-does-not-exist-exception/m-p/120043#M32987</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;We have for our application a number of IT tests defined, who are putting the application under a lot of stress.&lt;/P&gt;&lt;P&gt;Now and then, one of the IT tests running on Alfresco, is failing with the exception 'Node does not exist.'&lt;/P&gt;&lt;P&gt;Each test creates a folder, runs the test and removes the folder.&lt;/P&gt;&lt;P&gt;Before the folder is created, our code checks if the folder is there and if so, removes it. The folder creation and removal occurs in the&amp;nbsp;@before and&amp;nbsp;@after sections of the IT test.&lt;/P&gt;&lt;P&gt;The existance of the folder is checked with the method 'getChildByName'.&lt;/P&gt;&lt;P&gt;If this is done, sometimes an exception is thrown. Somewhere in the stack (RMMethodSecurityInterceptor) occurs the following:&lt;/P&gt;&lt;P&gt;public Object invoke(MethodInvocation mi) throws Throwable&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Object result = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InterceptorStatusToken token = beforeInvocation(mi);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&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; result = mi.proceed();&amp;nbsp; &amp;nbsp;// The method getChildByName is called and returns the folder.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = super.afterInvocation(token, result);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; In the call above the following method is eventually executed (RMAAfterInvokationProvider):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; private boolean isUnfiltered(NodeRef nodeRef)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return !nodeService.hasAspect(nodeRef, RecordsManagementModel.ASPECT_FILE_PLAN_COMPONENT);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; For some reason, the folder (node) has vanished and the hasAspect method throws the following exception:&lt;/P&gt;&lt;P&gt;Node does not exist: workspace://SpacesStore/6be00e3f-faa5-4d91-9e84-2af6a8b3d926 (status&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tatus[id=8263changeTxnId=73956ed3-3b79-48da-bb2b-1fae8788ca07, dbTxnId=685, deleted=true])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;*/&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Our IT tests are not running parallel (we are using the AlfrescoTestRunner class).&amp;nbsp; As our functionality concerns this should not happen (e.g. each tests deletes its folder, before an other test is called).&amp;nbsp; Also I find it very strange that the method getChildByName throws an exception which tells the id of the node, but says also that the node is deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug in Alfresco?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 13:50:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/erroneous-node-does-not-exist-exception/m-p/120043#M32987</guid>
      <dc:creator>wybrand</dc:creator>
      <dc:date>2020-12-07T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Erroneous 'node does not exist' exception.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/erroneous-node-does-not-exist-exception/m-p/120044#M32988</link>
      <description>&lt;P&gt;May be bug with the way IT code is developed, if the folder doesn't exists the error is expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you mind sharing the IT java source code here, provide any dependent code if you are using in the IT java class?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also provide the detailed steps that you are doing with IT.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 19:09:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/erroneous-node-does-not-exist-exception/m-p/120044#M32988</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-12-07T19:09:48Z</dc:date>
    </item>
  </channel>
</rss>

