Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56C71ED82 for ; Wed, 2 Jan 2013 12:20:13 +0000 (UTC) Received: (qmail 7164 invoked by uid 500); 2 Jan 2013 12:20:12 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 7121 invoked by uid 500); 2 Jan 2013 12:20:12 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 7111 invoked by uid 99); 2 Jan 2013 12:20:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2013 12:20:12 +0000 Date: Wed, 2 Jan 2013 12:20:12 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CMIS-593) DotCMIS to IBM Connections: ArgumentException at AbstractCmisObject.Initialize MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-593?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Florian M=C3=BCller resolved CMIS-593. --------------------------------- Resolution: Not A Problem =20 > DotCMIS to IBM Connections: ArgumentException at AbstractCmisObject.Initi= alize > -------------------------------------------------------------------------= ----- > > Key: CMIS-593 > URL: https://issues.apache.org/jira/browse/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 g= reenhouse.lotus.com 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): > [Fact] > public void DotCmisToIBMConnections() > { > var cmisParameters =3D new Dictionary(); > cmisParameters[SessionParameter.BindingType] =3D BindingType.AtomPub; > cmisParameters[SessionParameter.AtomPubUrl] =3D "https://greenhouse.l= otus.com/files/basic/cmis/my/servicedoc"; > cmisParameters[SessionParameter.User] =3D "ask me or create a free ac= count"; > cmisParameters[SessionParameter.Password] =3D "ask me or create a fre= e account"; > SessionFactory factory =3D SessionFactory.NewInstance(); > ISession session =3D factory.GetRepositories(cmisParameters)[0].Creat= eSession(); > IFolder root =3D session.GetRootFolder(); > IItemEnumerable children =3D root.GetChildren(); > foreach (var folder in children.OfType()) > { > Console.WriteLine(folder.Path); > IItemEnumerable subChildren =3D folder.GetChildren()= ; > foreach (var subFolder in subChildren.OfType()) // Error= happens here > { > Console.WriteLine(subFolder.Path); > } > } > } > System.ArgumentException was unhandled > Message=3DObject type must have property defintions! > Source=3DDotCMIS > StackTrace: > at DotCMIS.Client.Impl.AbstractCmisObject.Initialize(ISession sess= ion, IObjectType objectType, IObjectData objectData, IOperationContext cont= ext) > at DotCMIS.Client.Impl.Document..ctor(ISession session, IObjectTyp= e objectType, IObjectData objectData, IOperationContext context) > at DotCMIS.Client.Impl.ObjectFactory.ConvertObject(IObjectData obj= ectData, IOperationContext context) > at DotCMIS.Client.Impl.Folder.<>c__DisplayClass4.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.d__aa`1.MoveNext() > at TestLibrary.ConnectionTests.DotCmisToIBMConnections() in C:\Use= rs\nico\src\CmisSync\SparkleShare\TestLibrary\ConnectionTests.cs:line 96 > Console output: > /files > Might be related: http://stackoverflow.com/q/12816707 (Derek is an IBM Co= nnections engineer) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira