09-01-2015 12:19 PM
Exception in thread "Thread-0" org.apache.chemistry.opencmis.commons.exceptions.CmisStorageException: Expected 69489 bytes but retrieved 0 bytes!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:493)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:650)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:121)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1043)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:77)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:451)
at com.most.cmis.client.CMISTestClient.uploadDocumento(CMISTestClient.java:307)
at com.most.parascript.export.DirectoryWatcher.SpecificRule(DirectoryWatcher.java:63)
at com.most.parascript.export.DirectoryWatcher.fileEvents(DirectoryWatcher.java:172)
at com.most.parascript.export.DirectoryWatcher.run(DirectoryWatcher.java:203)
at java.lang.Thread.run(Unknown Source)
folderEntrada = (Folder) session.getObjectByPath("/sites/most/documentLibrary/clasComChave");
File file = new File(caminhoArquivo);
InputStream fis = new FileInputStream(file);
VersioningState vs = VersioningState.MAJOR;
DataInputStream dis = new DataInputStream(fis);
byte[] bytes = new byte[(int) file.length()];
dis.readFully(bytes);
ContentStream contentStream = new ContentStreamImpl(file.getAbsolutePath(), BigInteger.valueOf(bytes.length), tipoArquivo, new ByteArrayInputStream(bytes));
AlfrescoDocument novoDocumento = (AlfrescoDocument) folderEntrada.createDocument(properties, contentStream, vs);
01-19-2017 12:33 PM
I have a client that appears to be experiencing a similar issue with Alfresco Enterprise 5.1.1.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.