aegif / CmisSync

Synchronize content between a CMIS repository and your desktop. Like Dropbox for Enterprise Content Management!
http://CmisSync.com
163 stars 123 forks source link

ERROR: Object reference not set to an instance of an object #572

Open lelmarir opened 9 years ago

lelmarir commented 9 years ago

I get this error, what could it be?

2015-06-05 15:35:21,344 [29] ERROR CmisSync.StatusIconController [(null)] - Error syncing 'BERCO': Cannot access https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/path?path=/Siti/berco/documentLibrary&filter=cmis:objectId,cmis:name,cmis:contentStreamFileName,cmis:contentStreamLength,cmis:lastModificationDate,cmis:lastModifiedBy,cmis:path,cmis:changeToken,cmis:baseTypeId,cmis:objectTypeId&includeAllowableActions=true&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=: Riferimento a un oggetto non impostato su un'istanza di oggetto.
CmisSync.Lib.Cmis.BaseException: Cannot access https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/path?path=/Siti/berco/documentLibrary&filter=cmis:objectId,cmis:name,cmis:contentStreamFileName,cmis:contentStreamLength,cmis:lastModificationDate,cmis:lastModifiedBy,cmis:path,cmis:changeToken,cmis:baseTypeId,cmis:objectTypeId&includeAllowableActions=true&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=: Riferimento a un oggetto non impostato su un'istanza di oggetto. ---> DotCMIS.Exceptions.CmisConnectionException: Cannot access https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/path?path=/Siti/berco/documentLibrary&filter=cmis:objectId,cmis:name,cmis:contentStreamFileName,cmis:contentStreamLength,cmis:lastModificationDate,cmis:lastModifiedBy,cmis:path,cmis:changeToken,cmis:baseTypeId,cmis:objectTypeId&includeAllowableActions=true&includeACL=false&includePolicyIds=false&includeRelationships=none&renditionFilter=: Riferimento a un oggetto non impostato su un'istanza di oggetto. ---> System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
   in DotCMIS.Binding.Impl.HttpUtils.Response.ExtractHeader()
   in DotCMIS.Binding.Impl.HttpUtils.Response..ctor(WebException exception)
   in DotCMIS.Binding.Impl.HttpUtils.Invoke(UrlBuilder url, String method, String contentType, Output writer, BindingSession session, Nullable`1 offset, Nullable`1 length, IDictionary`2 headers)
   --- Fine della traccia dello stack dell'eccezione interna ---
   in DotCMIS.Binding.Impl.HttpUtils.Invoke(UrlBuilder url, String method, String contentType, Output writer, BindingSession session, Nullable`1 offset, Nullable`1 length, IDictionary`2 headers)
   in DotCMIS.Binding.Impl.HttpUtils.InvokeGET(UrlBuilder url, BindingSession session)
   in DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(UrlBuilder url)
   in 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 DotCMIS.Binding.AtomPub.ObjectService.GetObjectByPath(String repositoryId, String path, String filter, Nullable`1 includeAllowableActions, Nullable`1 includeRelationships, String renditionFilter, Nullable`1 includePolicyIds, Nullable`1 includeAcl, IExtensionsData extension)
   in DotCMIS.Client.Impl.Session.GetObjectByPath(String path, IOperationContext context)
   in DotCMIS.Client.Impl.Session.GetObjectByPath(String path)
   in CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.Sync(Boolean syncFull)
   in CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.<.ctor>b__4(Object o, DoWorkEventArgs args)
   --- Fine della traccia dello stack dell'eccezione interna ---
nicolas-raoul commented 9 years ago

Could you please try the same URL in a browser or command line, and check whether it works all the time?

lelmarir commented 9 years ago

Opening the link by hand (in the browser) it ask for credentials and then give this: I've tried multiple times but it seem to all ways reply like this

<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
   <atom:author>
      <atom:name>mpreti</atom:name>
   </atom:author>
   <atom:id>http://chemistry.apache.org/d29ya3NwYWNlOi8vU3BhY2VzU3RvcmUvZDg1YzQwZjctZDRiNi00YTY2LTg0MTctM2M5ODQyMzI3MzFk</atom:id>
   <atom:published>2015-02-09T15:37:54.724+01:00</atom:published>
   <atom:title>documentLibrary</atom:title>
   <app:edited>2015-03-27T15:26:32.211+01:00</app:edited>
   <atom:updated>2015-03-27T15:26:32.211+01:00</atom:updated>
   <cmisra:object>
      <cmis:properties>
         <cmis:propertyId propertyDefinitionId="cmis:objectTypeId" displayName="Object Type Id" localName="objectTypeId" queryName="cmis:objectTypeId">
            <cmis:value>cmis:folder</cmis:value>
         </cmis:propertyId>
         <cmis:propertyString propertyDefinitionId="cmis:path" displayName="Path" localName="path" queryName="cmis:path">
            <cmis:value>/Siti/eurostampa/documentLibrary</cmis:value>
         </cmis:propertyString>
         <cmis:propertyString propertyDefinitionId="cmis:name" displayName="Name" localName="name" queryName="cmis:name">
            <cmis:value>documentLibrary</cmis:value>
         </cmis:propertyString>
         <cmis:propertyString propertyDefinitionId="cmis:changeToken" displayName="Change token" localName="changeToken" queryName="cmis:changeToken" />
         <cmis:propertyString propertyDefinitionId="cmis:lastModifiedBy" displayName="Last Modified By" localName="lastModifiedBy" queryName="cmis:lastModifiedBy">
            <cmis:value>mmangano</cmis:value>
         </cmis:propertyString>
         <cmis:propertyId propertyDefinitionId="cmis:objectId" displayName="Object Id" localName="objectId" queryName="cmis:objectId">
            <cmis:value>workspace://SpacesStore/d85c40f7-d4b6-4a66-8417-3c984232731d</cmis:value>
         </cmis:propertyId>
         <cmis:propertyId propertyDefinitionId="cmis:baseTypeId" displayName="Base Type Id" localName="baseTypeId" queryName="cmis:baseTypeId">
            <cmis:value>cmis:folder</cmis:value>
         </cmis:propertyId>
         <cmis:propertyDateTime propertyDefinitionId="cmis:lastModificationDate" displayName="Last Modified Date" localName="lastModificationDate" queryName="cmis:lastModificationDate">
            <cmis:value>2015-03-27T15:26:32.211+01:00</cmis:value>
         </cmis:propertyDateTime>
         <e1:aspects xmlns:e1="http://www.alfresco.org">
            <e1:appliedAspects>P:st:siteContainer</e1:appliedAspects>
            <e1:appliedAspects>P:cm:ownable</e1:appliedAspects>
            <e1:appliedAspects>P:cm:tagscope</e1:appliedAspects>
            <e1:appliedAspects>P:cm:titled</e1:appliedAspects>
            <e1:appliedAspects>P:sys:localized</e1:appliedAspects>
         </e1:aspects>
      </cmis:properties>
      <cmis:allowableActions>
         <cmis:canUpdateProperties>true</cmis:canUpdateProperties>
         <cmis:canGetFolderTree>true</cmis:canGetFolderTree>
         <cmis:canGetProperties>true</cmis:canGetProperties>
         <cmis:canGetObjectRelationships>true</cmis:canGetObjectRelationships>
         <cmis:canGetObjectParents>true</cmis:canGetObjectParents>
         <cmis:canGetFolderParent>true</cmis:canGetFolderParent>
         <cmis:canGetDescendants>true</cmis:canGetDescendants>
         <cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
         <cmis:canGetChildren>true</cmis:canGetChildren>
         <cmis:canCreateDocument>true</cmis:canCreateDocument>
         <cmis:canCreateFolder>true</cmis:canCreateFolder>
         <cmis:canGetACL>true</cmis:canGetACL>
      </cmis:allowableActions>
   </cmisra:object>
   <atom:link rel="service" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841?repositoryId=9862a042-6070-4204-b738-9ed50d687841" type="application/atomsvc+xml" />
   <atom:link rel="self" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/entry?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=entry" cmisra:id="workspace://SpacesStore/d85c40f7-d4b6-4a66-8417-3c984232731d" />
   <atom:link rel="enclosure" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/entry?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=entry" />
   <atom:link rel="edit" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/entry?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=entry" />
   <atom:link rel="describedby" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/type?id=cmis%3Afolder" type="application/atom+xml;type=entry" />
   <atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/allowableactions?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/cmisallowableactions+xml" />
   <atom:link rel="up" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/parents?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=feed" />
   <atom:link rel="down" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/children?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=feed" />
   <atom:link rel="down" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/descendants?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/cmistree+xml" />
   <atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/foldertree" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/foldertree?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=feed" />
   <atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/acl" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/acl?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/cmisacl+xml" />
   <atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/policies" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/policies?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=feed" />
   <atom:link rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships" href="https://alfresco.bcsoa.it/alfresco/cmisatom/9862a042-6070-4204-b738-9ed50d687841/relationships?id=workspace%3A%2F%2FSpacesStore%2Fd85c40f7-d4b6-4a66-8417-3c984232731d" type="application/atom+xml;type=feed" />
</atom:entry>
nicolas-raoul commented 9 years ago

It seems that for some reason the request failed once in CmisSync.

Is it reproducible? If yes, I would love to see the Wireshark network trace.

nicolas-raoul commented 7 years ago

Wild idea: Does it always happen when secondary parents are involved?