我正在尝试在露天使用 apache-chemistry 创建文本文档。我的代码用于创建文档是
Document document = FileUtils.createTextDocument("/", "test.txt", "test document", BaseTypeId.CMIS_DOCUMENT.value(), VersioningState.MAJOR, session);
当我执行我的代码时,我得到以下异常
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:无法访问“ http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=5717e8a0-61b2 -4bcb-8a91-2f4b61ebfefa&versioningState=主要":流已经关闭!在 org.apache.chemistry.opencmis.client.bindings.spi.http 的 org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke(DefaultHttpInvoker.java:233) .DefaultHttpInvoker.invokePOST(DefaultHttpInvoker.java:68) 在 org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:713) 在 org.apache.chemistry.opencmis.client.bindings .spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:122) 在 org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1165) 在 org.apache.chemistry.opencmis.client.runtime .FolderImpl.createDocument(FolderImpl.java:77) 在 org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:460) 在 org.apache。chemistry.opencmis.client.util.FileUtils.createTextDocument(FileUtils.java:168)