在基于cmis的开放式服务器中创建文档时无法访问错误

时间:2014-01-01 11:32:14

标签: cmis opencmis

我一直在尝试使用Open CMIS化学服务器在现有文件夹中创建文档。

这样做我总是得到这个错误

无法访问https://test.com/json/cc5646c4e12341020012fc05/root?objectId=oRZQrt4ApnNx6fj6hAZ-4rW3wp8MGpgiZ6bvQgnUmDQ": null

文件夹ID(我正在尝试创建文档)是正确的,这在url oRZQrt4ApnNx6fj6hAZ-4rW3wp8MGpgiZ6bvQgnUmDQ中给出。 我不是服务器的管理员,我是否需要一些写权限?...无法找到实际原因。

更新:即将到来的堆栈跟踪

01-01 19:04:16.825: E/MetadataDownloadThread(18968): Error ERROR_CONNECT_FAILURE in metadata thread processing task (repository cc5646c4e12341020012fc05, High, DocumentUpload, Document: [oRZQrt4ApnNx6fj6hAZ-4rW3wp8MGpgiZ6bvQgnUmDQ, 1388583206977])
01-01 19:04:16.825: E/MetadataDownloadThread(18968): org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access "https://mobiledocs-mcm.hana.ondemand.com/mcm/b/json/cc5646c4e12341020012fc05/root?objectId=oRZQrt4ApnNx6fj6hAZ-4rW3wp8MGpgiZ6bvQgnUmDQ": null
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.bindings.spi.http.AbstractApacheClientHttpInvoker.invoke(AbstractApacheClientHttpInvoker.java:305)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.bindings.spi.http.AbstractApacheClientHttpInvoker.invokePOST(AbstractApacheClientHttpInvoker.java:86)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:358)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:83)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:841)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:75)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:449)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at com.test.mcm.MetadataDownloadThread.createDocumentOnServer(MetadataDownloadThread.java:549)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at com.test.mcm.MetadataDownloadThread.run(MetadataDownloadThread.java:235)
01-01 19:04:16.825: E/MetadataDownloadThread(18968): Caused by: org.apache.http.client.ClientProtocolException
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.chemistry.opencmis.client.bindings.spi.http.AbstractApacheClientHttpInvoker.invoke(AbstractApacheClientHttpInvoker.java:256)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    ... 8 more
01-01 19:04:16.825: E/MetadataDownloadThread(18968): Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:420)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
01-01 19:04:16.825: E/MetadataDownloadThread(18968):    ... 11 more

当我通过chrome发帖时,同样的网址我得到以下json响应。

{
    "exception": "permissionDenied",
    "message": "INVALID_TOKEN_PROVIDED"
}

谢谢和问候, Saurav

1 个答案:

答案 0 :(得分:1)

您似乎正在连接到SAP Mobile Documents服务器。你能提供异常的堆栈跟踪吗?

如果要从Web浏览器进行测试,则必须提供额外的令牌。有关详细信息,请参阅SAP Mobile Documents文档。