使用openCMIS Workbench登录到Sharepoint 2013存储库的错误 [英] Login error to Sharepoint 2013 repository using openCMIS Workbench

查看:93
本文介绍了使用openCMIS Workbench登录到Sharepoint 2013存储库的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用OpenCMIS Workbench 0.8.0,我可以很好地加载sharepoint 2013(GA)存储库,但是当我尝试登录到其中一个存储库(例如文档")时出现以下错误:

using the OpenCMIS Workbench 0.8.0, I can load the sharepoint 2013 (GA) repositories fine but get the following error when I try to login to one of the repositories such as Documents:

参数无效:服务方法的一个或多个输入参数丢失或无效"

"Invalid Argument: One or more of the input parameters to the service method is missing or invalid"

找到了一个包含一些说明的博客,但这些说明对我不起作用: http://dhartford .blogspot.com/2013/01/sharepoint-2013-w-apache-chemistry-cmis.html?showComment = 1359398536275#c6910049622927723676

Found a blog with some instructions but those didn't work for me: http://dhartford.blogspot.com/2013/01/sharepoint-2013-w-apache-chemistry-cmis.html?showComment=1359398536275#c6910049622927723676

注意:这是我正在使用的服务URL格式: http://myserver.xxx.com/MYSITE/cmis/_vti_bin/cmis/rest?getRepositories

Note: Here is the service url format that I am using: http://myserver.xxx.com/MYSITE/cmis/_vti_bin/cmis/rest?getRepositories

有人知道是什么问题吗?

Does anybody know what the problem is?

这是来自Workbench的堆栈跟踪:

Here is the stack trace from Workbench:

> 11:05:17 DEBUG ncmis.client.bindings.spi.http.HttpUtils: GET http://MYServer/_vti_bin/cmis/rest/f8134afe-176a-4c48-9fd2-a9f97e5dc91d?getTypeDefinition&typeId=cmis%3Adocument
> 11:05:17 TRACE ncmis.client.bindings.spi.http.HttpUtils: GET http://MYServer/_vti_bin/cmis/rest/f8134afe-176a-4c48-9fd2-a9f97e5dc91d?getTypeDefinition&typeId=cmis%3Adocument > Headers: {null=[HTTP/1.1 400 One or more of the input parameters to the service method is missing or invalid.], Server=[Microsoft-IIS/7.5], SPRequestDuration=[124], SPIisLatency=[27], X-FRAME-OPTIONS=[SAMEORIGIN], Content-Type=[plain/text; charset=utf-8], Date=[Wed, 30 Jan 2013 19:05:02 GMT], X-SharePointHealthScore=[1], Cache-Control=[private], X-Content-Type-Options=[nosniff], X-Powered-By=[ASP.NET], X-MS-InvokeApp=[1; RequireReadOnly], request-id=[5ef0f99b-24ec-909f-6192-6eaf6feccabc], Content-Length=[167], MicrosoftSharePointTeamServices=[15.0.0.4420], SPRequestGuid=[5ef0f99b-24ec-909f-6192-6eaf6feccabc], X-AspNet-Version=[4.0.30319]}
> 11:05:17 ERROR hemistry.opencmis.workbench.ClientHelper: CmisInvalidArgumentException: One or more of the input parameters to the service method is missing or invalid.
org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: One or more of the input parameters to the service method is missing or invalid.
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:423)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:554)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:821)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:88)
    at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:137)
    at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:518)
    at org.apache.chemistry.opencmis.workbench.model.ClientSession.createOperationContexts(ClientSession.java:244)
    at org.apache.chemistry.opencmis.workbench.model.ClientSession.createSession(ClientSession.java:195)
    at org.apache.chemistry.opencmis.workbench.LoginDialog$2.actionPerformed(LoginDialog.java:204)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2006)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2329)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:398)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
> 11:05:17 ERROR hemistry.opencmis.workbench.ClientHelper: Error code: 0

我注意到的另一件事是,当我从浏览器中使用服务文档中的URL时,这些URL都不起作用.因此,我认为服务文档没有有效的网址.

Another thing that I noticed is that none of the URLs from the service document work when I use them from a browser. So i think the service doc doesn't have valid urls.

推荐答案

没有时间发布解决方案,但这基本上是我在获得Microsoft帮助后要做的事情.我错过了下面的步骤B:

Didn't have the time to post the solution but here is basically what I had to do after getting help from Microsoft. I was missing Step B below:

  1. 转到Sharepoint 2013管理中心
  2. 单击站点"链接,然后单击您的子站点.或直接导航到它.例如 http://myserver/mysitename
  3. 单击设置"图标(齿轮右上角),然后选择网站设置"
  4. 在网站操作"下,单击管理网站功能"
  5. 为CMIS生产者单击激活".
  1. Go to the Sharepoint 2013 Central Administration
  2. Click on the Sites link and then click on your sub site. Or navigate directly to it. eg http://myserver/mysitename
  3. Click on the Settings icon (gear top right) and then select Site Settings
  4. Under Site Actions, click Manage Site Features
  5. Click Activate for the CMIS producer.

B.检查备用访问映射

  1. 转到管理中心页面
  2. 在系统设置"下,单击配置备用访问映射"
  3. 至少应有两个网址.一种带有服务器简称,另一种带有服务器全名.
  4. 如果缺少该网址,请单击添加内部网址"
  5. 对于备用访问映射集合",单击无选择"链接,进行更改并选择:
    • SharePoint-80
    • 设置网址,例如 http://myserver.usa.com (完整域名)
    • 设置区域:诸如Intranet之类的任何区域
  1. Go to the Central Administration page
  2. Under System Settings, click Configure Alternate Access Mappings
  3. There should be at least two urls. One with server short name and one with server full name.
  4. If the url is missing, click Add Internal Urls
  5. For the Alternate Access Mapping Collection, click the No Selection link, change and select:
    • SharePoint - 80
    • Set the url such as http://myserver.usa.com (full domain name)
    • Set Zone: any such as Intranet

这篇关于使用openCMIS Workbench登录到Sharepoint 2013存储库的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆