Я пытаюсь создать текстовый документ, используя apache-chemistry во всём мире. Мой код для создания документа являетсяAlfresco: Stream уже закрыт
документ Документ = FileUtils.createTextDocument ("/", "test.txt", "тестовый документ", BaseTypeId.CMIS_DOCUMENT.value(), VersioningState.MAJOR, сессия);
когда я исполню мой код я получаю следующее исключение
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=major»: поток уже закрыт! at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke (DefaultHttpInvoker.java:233) at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invokePOST (DefaultHttpInvoker.java:68) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post (AbstractAtomPubService.java:713) at org.apache.chemistry.opencmis.client.bindings.spi. atompub.ObjectServiceImpl.createDocument (ObjectServiceImpl.java:122) at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument (SessionImpl.java:1165) at org.apache.chemistry.opencmis.client.runtime. FolderImpl.createDocument (FolderImpl.java:77) at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument (FolderImpl.java:460) на org.apache.chemistry.opencmis.client.util.FileUtils.createTextDocument (FileUtils.java:168)
Проверьте следующие страницы: https: //chemistry.apache.org/docs/cmis-samples/samples/create-objects/index.html#creating-a-document https://chemistry.apache.org/docs/cmis-samples/samples/content/ index.html –
попробуйте мой пример и дайте нам отзыв –