私はalfrescoのapache-chemistryを使用してテキスト文書を作成しようとしています。私のコードは、文書を作成するためのものであるAlfresco:ストリームがすでに閉じられています
ドキュメントドキュメント= 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( (AbstractAttomPubService.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)HTTPS:org.apache.chemistry.opencmis.client.util.FileUtils.createTextDocument(FileUtils.java:168)
をお試しください: //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 –
私の例を試して、私たちにフィードバックを与えてください –