chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Raoul (JIRA)" <>
Subject [jira] [Created] (CMIS-593) DotCMIS to IBM Connections: ArgumentException at AbstractCmisObject.Initialize
Date Fri, 19 Oct 2012 06:48:03 GMT
Nicolas Raoul created CMIS-593:

             Summary: DotCMIS to IBM Connections: ArgumentException at AbstractCmisObject.Initialize
                 Key: CMIS-593
             Project: Chemistry
          Issue Type: Bug
          Components: dotcmis
    Affects Versions: cmislib 0.5
         Environment: Windows 7
IBM Connections
            Reporter: Nicolas Raoul

"IBM Connections" is a Liferay-like app with a "Files" module that has a CMIS server interface.
Credentials for the IBM Connections live demo server can be obtained at
but I can give Florian my credentials if bothersome.
Not sure who is to blame: my code, Connections, or DotCMIS.
My code (xUnit test actually):

public void DotCmisToIBMConnections()
    var cmisParameters = new Dictionary<string, string>();
    cmisParameters[SessionParameter.BindingType] = BindingType.AtomPub;
    cmisParameters[SessionParameter.AtomPubUrl] = "";
    cmisParameters[SessionParameter.User] = "";
    cmisParameters[SessionParameter.Password] = "ask me or create a free account";
    SessionFactory factory = SessionFactory.NewInstance();
    ISession session = factory.GetRepositories(cmisParameters)[0].CreateSession();
    IFolder root = session.GetRootFolder();
    IItemEnumerable<ICmisObject> children = root.GetChildren();
    foreach (var folder in children.OfType<IFolder>())
        IItemEnumerable<ICmisObject> subChildren = folder.GetChildren();
        foreach (var subFolder in subChildren.OfType<IFolder>()) // Error happens here

System.ArgumentException was unhandled
  Message=Object type must have property defintions!
       at DotCMIS.Client.Impl.AbstractCmisObject.Initialize(ISession session, IObjectType
objectType, IObjectData objectData, IOperationContext context)
       at DotCMIS.Client.Impl.Document..ctor(ISession session, IObjectType objectType, IObjectData
objectData, IOperationContext context)
       at DotCMIS.Client.Impl.ObjectFactory.ConvertObject(IObjectData objectData, IOperationContext
       at DotCMIS.Client.Impl.Folder.<>c__DisplayClass4.<GetChildren>b__3(Int64
maxNumItems, Int64 skipCount)
       at DotCMIS.Client.Impl.PageFetcher`1.FetchNextPage(Int64 skipCount)
       at DotCMIS.Client.Impl.AbstractEnumerator`1.GetCurrentPage()
       at DotCMIS.Client.Impl.CollectionEnumerator`1.MoveNext()
       at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
       at TestLibrary.ConnectionTests.DotCmisToIBMConnections() in C:\Users\nico\src\CmisSync\SparkleShare\TestLibrary\ConnectionTests.cs:line

Console output:

Might be related: (Derek is an IBM Connections engineer)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message