[ https://issues.apache.org/jira/browse/CMIS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552691#comment-13552691 ]
Matthew Rutledge-Taylor edited comment on CMIS-609 at 1/14/13 2:45 PM: ----------------------------------------------------------------------- Here is the call stack. DotCMIS.dll!DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(DotCMIS.Binding.Impl.UrlBuilder url = {<moss-server>/sites/CMIS1/_vti_bin/cmis/rest/d7f6a28f-6a82-4221-9344-5f527ff93e5f?getChildren&folderID=-1&includeAllowableActions=true&includeRelationships=none&includePathSegment=true&maxItems=100&skipCount=1}) Line 436 C# DotCMIS.dll!DotCMIS.Binding.AtomPub.NavigationService.GetChildren(string repositoryId = "d7f6a28f-6a82-4221-9344-5f527ff93e5f", string folderId = "-1", string filter = null, string orderBy = null, bool? includeAllowableActions = true, DotCMIS.Enums.IncludeRelationshipsFlag? includeRelationships = None, string renditionFilter = null, bool? includePathSegment = true, long? maxItems = 100, long? skipCount = 1, DotCMIS.Data.Extensions.IExtensionsData extension = null) Line 1050 + 0x10 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.Folder.GetChildren.AnonymousMethod(long maxNumItems = 100, long skipCount = 1) Line 1252 + 0x352 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.PageFetcher<DotCMIS.Client.ICmisObject>.FetchNextPage(long skipCount = 1) Line 563 + 0x38 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.AbstractEnumerator<DotCMIS.Client.ICmisObject>.IncrementPage() Line 539 + 0x3e bytes C# DotCMIS.dll!DotCMIS.Client.Impl.CollectionEnumerator<DotCMIS.Client.ICmisObject>.MoveNext() Line 622 + 0xd bytes C# Cogniva.CMIS.wfTest.exe!Cogniva.CMIS.wfTest.Form1.btnConnect_Click(object sender = {Text = "Connect"}, System.EventArgs e = {X = 29 Y = 26 Button = Left}) Line 56 + 0x14 bytes C# Cogniva.CMIS.wfTest.exe!Cogniva.CMIS.wfTest.Program.Main() Line 18 + 0x28 bytes C# The error is: CmisRuntimeException 'Internal Server Error' I've tested my code against two different MOSS2010 servers, each with the CMIS connector installed. And, yes, I don't have any issues connecting to the OpenCMIS InMemory rep either. was (Author: matthewrt): Here is the call stack. DotCMIS.dll!DotCMIS.Binding.AtomPub.AbstractAtomPubService.Read(DotCMIS.Binding.Impl.UrlBuilder url = {http://mossdev-01:11111/sites/CMIS1/_vti_bin/cmis/rest/d7f6a28f-6a82-4221-9344-5f527ff93e5f?getChildren&folderID=-1&includeAllowableActions=true&includeRelationships=none&includePathSegment=true&maxItems=100&skipCount=1}) Line 436 C# DotCMIS.dll!DotCMIS.Binding.AtomPub.NavigationService.GetChildren(string repositoryId = "d7f6a28f-6a82-4221-9344-5f527ff93e5f", string folderId = "-1", string filter = null, string orderBy = null, bool? includeAllowableActions = true, DotCMIS.Enums.IncludeRelationshipsFlag? includeRelationships = None, string renditionFilter = null, bool? includePathSegment = true, long? maxItems = 100, long? skipCount = 1, DotCMIS.Data.Extensions.IExtensionsData extension = null) Line 1050 + 0x10 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.Folder.GetChildren.AnonymousMethod(long maxNumItems = 100, long skipCount = 1) Line 1252 + 0x352 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.PageFetcher<DotCMIS.Client.ICmisObject>.FetchNextPage(long skipCount = 1) Line 563 + 0x38 bytes C# DotCMIS.dll!DotCMIS.Client.Impl.AbstractEnumerator<DotCMIS.Client.ICmisObject>.IncrementPage() Line 539 + 0x3e bytes C# DotCMIS.dll!DotCMIS.Client.Impl.CollectionEnumerator<DotCMIS.Client.ICmisObject>.MoveNext() Line 622 + 0xd bytes C# Cogniva.CMIS.wfTest.exe!Cogniva.CMIS.wfTest.Form1.btnConnect_Click(object sender = {Text = "Connect"}, System.EventArgs e = {X = 29 Y = 26 Button = Left}) Line 56 + 0x14 bytes C# Cogniva.CMIS.wfTest.exe!Cogniva.CMIS.wfTest.Program.Main() Line 18 + 0x28 bytes C# The error is: CmisRuntimeException 'Internal Server Error' I've tested my code against two different MOSS2010 servers, each with the CMIS connector installed. And, yes, I don't have any issues connecting to the OpenCMIS InMemory rep either. > Crash when at the end of iterating through GetChildren() in DotCMIS > ------------------------------------------------------------------- > > Key: CMIS-609 > URL: https://issues.apache.org/jira/browse/CMIS-609 > Project: Chemistry > Issue Type: Bug > Components: dotcmis > Affects Versions: DotCMIS 0.5 > Environment: Visual Studio 9.0 (2008) > Reporter: Matthew Rutledge-Taylor > Assignee: Florian Müller > Priority: Blocker > > I'm trying to build a client for connecting to SharePoint via CMIS using > DotCMIS. > in my code > IFolder rootFolder = session.GetRootFolder(); > IEnumerable<ICmisObject> children = rootFolder.GetChildren(); > List<ICmisObject> childrenList = children.ToList(); > an internal server error is thrown when creating the list of ICmisObjects. > Each of the objects in the library is retrieved successfully. However, in > the call to CollectionEnumerator.MoveNext() after the last object is > retrieved, SkipOffset == items.Count, which causes IncrementPage() to be > called. Ultimately, the HttpWebResponse response = > (HttpWebResponse)conn.GetResponse() call in Client.Impl.HttpUtils fails, > throwing an error, presumably because there is no subsequent page of items. > Here is the request url that is built > {http://<site>/_vti_bin/cmis/rest/b8520585-9fbe-49fc-a523-2da2ab4e16ab?getChildren&folderID=-1&includeAllowableActions=true&includeRelationships=none&includePathSegment=true&maxItems=100&skipCount=1} > I tested the same code using the Groovy connector in the workbench: > Folder rootFolder = session.getRootFolder(); > ItemIterable<CmisObject> children = rootFolder.getChildren(); > List<CmisObject> childrenList = children.toList(); > and it works fine. -- 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: http://www.atlassian.com/software/jira