Quantcast
Channel: Alfresco Forums - Alfresco API
Viewing all articles
Browse latest Browse all 252

CmisStorageException

$
0
0

I am facing below issue with CMIS v1.1. It is random issue and coming with
Document org.apache.chemistry.opencmis.client.api.Folder.createDocument() API.

org.apache.chemistry.opencmis.commons.exceptions.CmisStorageException: Expected 1910037 bytes but retrieved 0 bytes!

I am using chemistry OpenCMIS 0.10.0 jar.
I am also specifying content stream length as below
contentStream = new ContentStreamImpl(file.getAbsolutePath(), BigInteger.valueOf(bytes.length), mimeType,
new ByteArrayInputStream(bytes));

Immediate help will be appreciated.

Thanks,
Diksha

4.2.d

Viewing all articles
Browse latest Browse all 252

Trending Articles