AnsweredAssumed Answered

InvalidNodeRefException of a node already deleted

Question asked by ngiolet on Feb 11, 2011
Latest reply on Mar 28, 2011 by toadybear
I have developed a Java Web application which use Alfresco APIs for menaging content.
Assuming that the application use Alfresco database I have the following problem.

When I create a new document from the application which I developed, the document itself is correctly founded after login in Alfresco.
Instead when I delete a document directly from Alfresco and navigate to the page, of my web application, corresponding to the space where the file resides, I get the following message:Node does not exist: workspace://SpacesStore/…(node ID).
In addition the log file of my application shows org.alfresco.service.cmr.repository.InvalidNodeRefException.
It is as if for my application the document still exists. :shock:
I need to republish my application.
I search documents in this way:

ServiceDescriptorRegistry alfrescoServiceRegistry;      
alfrescoServiceRegistry.getSearchService().query(storeRef, SearchService.LANGUAGE_LUCENE, queryPath);

I hope I was clear.
Thanks in advance for the help.