AnsweredAssumed Answered

Strange timeout issues with Alfresco 4

Question asked by katie on May 24, 2012
Latest reply on Dec 18, 2015 by bswartz-dorman
I am successfully retrieving documents (amongst other operations) from Alfresco using the DotCMIS library in C#.  I have no issues when connecting to our older Alfresco 3.3 server.

When using Alfresco 4, however, the DotCMIS calls (fairly reliably) stop responding after I've fetched *any* two (sometimes three) documents, even the same one each time (I have created the same documents on both servers, to rule out anything peculiar with the documents themselves.)  In this state, any subsequent call eventually raises a Timeout exception, although sometimes they will just magically start working again, most of the time the only resolution is to restart my application.  It's just peculiar because this problem does not occur when I am using the older Alfresco server, I can fetch as many documents as I like with no issues.

I don't think the stack trace is very useful:
   at DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(UrlBuilder url) in chemistry-dotcmis-0.4-src\src\binding\atompub\atompub.cs:line 436
   at DotCMIS.Binding.AtomPub.AbstractAtomPubService.GetObjectInternal(String repositoryId, IdentifierType idOrPath, String objectIdOrPath, Nullable`1 returnVersion, String filter, Nullable`1 includeAllowableActions, Nullable`1 includeRelationships, String renditionFilter, Nullable`1 includePolicyIds, Nullable`1 includeAcl, IExtensionsData extension) in chemistry-dotcmis-0.4-src\src\binding\atompub\atompub.cs:line 742
   at DotCMIS.Binding.AtomPub.ObjectService.GetObject(String repositoryId, String objectId, String filter, Nullable`1 includeAllowableActions, Nullable`1 includeRelationships, String renditionFilter, Nullable`1 includePolicyIds, Nullable`1 includeAcl, IExtensionsData extension) in chemistry-dotcmis-0.4-src\src\binding\atompub\atompub.cs:line 1712
   at DotCMIS.Client.Impl.Session.GetObject(String objectId, IOperationContext context) in chemistry-dotcmis-0.4-src\src\client\client-impl.cs:line 532
   at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId, IOperationContext context) in chemistry-dotcmis-0.4-src\src\client\client-impl.cs:line 500
   at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId) in chemistry-dotcmis-0.4-src\src\client\client-impl.cs:line 490
   at GetDocumentFromID(String document_ID) in CMISDocumentManager.cs:line 533

The call I am making is
ob = session.GetObject(id) as IDocument;

I have checked the logs on the Alfresco server and there is nothing at all related to the failed calls.

Has anybody else seen this?  I can't rule out that my code is at fault, but there must be some key difference between the versions of Alfresco that cause this behaviour if this isn't a problem with Alfresco's CMIS implementation…

Outcomes